|
If you change your Mac Address to something that exists, bad things can happen. Exactly what depends on many things. If you never transmit, and you have a switched network nothing will happen. If you have hubs, then you will see all traffic for the other machine as if it went to yours. (better to tell the card to listen for everything if you want to do this though)
If you transmit you mess up the network, and the sys admin will be down your throat. Don't do it.
Nearly all[1] cards support changing the Mac Address from software. DecNet requires this ability. Everyone is afraid that the last person on earth who runs DecNet will buy their card and it won't work. Besides, because everything ethernet has always supported changing the Mac Address, it is easier to leave that in each upgrade than to take it out.
I don't know what a DVB card is, so I can't speak for that particular case.
[1]It is probably safe to just say all. I know of no exceptions and find them unlikely.
|
|
|
|
|
Thanks for your comment. Very useful. DVB is a card for receiving data from satellite. Sending data done via a regular modem but receiving data done by DVB. DVB has a MAC address, if received data contains this MAC, then capture this data and deliver it to Windows.
Best regards,
A. Riazi
|
|
|
|
|
hi !
I am a newbie with MAPI.I figured out how to use MAPI to read/send/delete maessages etc. Can anybody tell me how to strip a message of its attatchments ?
Also can anyone tell me how to find the path to the storage (.pst ) file of the currently logged in profile ( logged in thru MapiLogonEx( ) ).
Thanks in advance.
Best Regards,
_KANE_
"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
|
|
|
|
|
|
well i already had a look at those, there;s one that lets you find the path to the .pst file but i cannot find the code for stripping the attatchments..
-kane
"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
|
|
|
|
|
Hello,
I need to bring up 2 dialog windows and I need to work with then. How can I bring up 2 dialog windows and use them at the same time?.
When I do it now I can olny use the last dialog I show.
I work with MFC. Please help me.
|
|
|
|
|
|
Just create dialogs as modeless dialogs not modal. Here is an example:
CMyDlg1 dlg1;
dlg1.Create(...);
CMyDlg2 dlg2;
dlg2.Create(...);
A. Riazi
|
|
|
|
|
Create?
What should I type in the Create?
dlg1.Create(???);
|
|
|
|
|
dlg1.Create(ID_OF_YOUR_DIALOG);
A. Riazi
|
|
|
|
|
Yes but the dialog will not show it self.
If I try ShowWindow(SW_SHOW); I still not see it,
And if I try dlg1.DoModle(); its the same.
So how can I bring up the dialog window and see it.
|
|
|
|
|
Define dlg1 and dlg2 as member variables of your main class.
A. Riazi
|
|
|
|
|
I Have done that byt how can I show the dialog?,
Well I can use DoModal if I do that I get;
you cant use that with a modless dialog so how can I show the dialog?. If I use ShowWindow(SW_SHOW) nothing happends so I need to show the window but how do I do that?
|
|
|
|
|
The Create() member function must show you dialog window, if you didn't see anything, you did something wrong.
A. Riazi
|
|
|
|
|
Well I see that It somehow destroj the dialog window,
Is ther anthing I need to do?
|
|
|
|
|
Hi,,
How do i know at run time, that my application is minimised or lost focus ??
Thanx in advance,
saleem
|
|
|
|
|
Handle WM_SHOW and WM_KILLFOCUS .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
In one of our applications, we are using a lot VBScripts to get some work done like file transfer, etc., since the requirements for these normally varies and hence is not nice to put into our application itself.
Now, the problem we are facing is that when these scripts are executed by our application using the CSCRIPT interpreter, common anti-virus apps like Norton, disable them or pop-up a question to the user. Is there a way to avoid this??
Thanks,
Krishnan
|
|
|
|
|
We wrote the management scripts for our project using python to get around this problem, but I guess that isn't what you wanted to hear,
From a quick experiment it looks like NAV hooks into the actual COM objects that of WSH (only a guess) - I tried getting smart and renaming the interpreters, but it still brings up the error dialogs. This Microsoft Knowledge Base Article seems to indicate that Microsoft don't even have a consistent approach to working around this problem.
http://www.python.org/
Python Windows Extensions
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
how to select few snippets of text at the same time in editbox? then i want to scroll that editbox without losing selection. any ideas?
|
|
|
|
|
I don't believe a standard CEdit supports multi-selection.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi Friends,
In my application, i want to create the Custom UI controls, ie., instead of using windows Default controls like scroll bar, combo box i would like to use my own scroll bar, combo box controls having user defined bitmaps over the controls. Here i have to attached my requirement as a screenshot. Please advice how to create custom UI controls for scrool bar and combo box.
http://img.photobucket.com/albums/v298/pgnanaprakash/Misc/ElementProcessing.jpg
Rgds,
Prakash.
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
Hi,
I was doing one of the beginning VC++ tutorials, and I added a member variable to a class by right clicking on the class name and choosing Add Member Variable from the context menu. However, I typed in the wrong name for the variable, so I wanted to delete it. There didn't seem to be a way to delete a variable using the Class Wizard, so I navigated to the variable in the header file, and I deleted it.
However, when I tried to add the variable with the correct name (once again right clicking on the class name, and choosing Add Member Variable), a pop up box informed me the variable name could not be added. So, I added it by hand to the header file, as well as a few more variables, but when I went to build the project, I got 18 errors relating to the top of the .cpp file for the class.
Is my only option to delete the whole program and start over?
Below I included parts of the code with some comments:
errors:
------------
ompiling...
CodeProject_Dialog2.cpp
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(11) : error C2258: illegal pure syntax, must be '= 0'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(11) : error C2252: 'THIS_FILE' : pure specifier can only be specified for functions
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2838: illegal qualified name in member declaration
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2059: syntax error : 'return'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2238: unexpected token(s) preceding ';'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2143: syntax error : missing ';' before '*'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2501: 'GetMessageMap' : missing storage-class or type specifiers
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2556: 'int *__thiscall CCodeProject_Dialog2App::GetMessageMap(void) const' : overloaded function differs only by return type from 'const struct AFX_MSGMAP *__thiscall CCodePro
ject_Dialog2App::GetMessageMap(void) const'
c:\beginning c++\codeproject_dialog2\codeproject_dialog2.h(40) : see declaration of 'GetMessageMap'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2373: 'GetMessageMap' : redefinition; different type modifiers
c:\beginning c++\codeproject_dialog2\codeproject_dialog2.h(40) : see declaration of 'GetMessageMap'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2143: syntax error : missing ';' before 'tag::id'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2734: 'AFX_MSGMAP' : const object must be initialized if not extern
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : error C2371: 'AFX_MSGMAP' : redefinition; different basic types
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : see declaration of 'AFX_MSGMAP'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2.cpp(17) : fatal error C1004: unexpected end of file found
CodeProject_Dialog2Dlg.cpp
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2Dlg.cpp(11) : error C2258: illegal pure syntax, must be '= 0'
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2Dlg.cpp(11) : error C2252: 'THIS_FILE' : pure specifier can only be specified for functions
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2Dlg.cpp(41) : error C2057: expected constant expression
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2Dlg.cpp(41) : error C2838: illegal qualified name in member declaration
C:\Beginning C++\CodeProject_Dialog2\CodeProject_Dialog2Dlg.cpp(41) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Generating Code...
Error executing cl.exe.
CodeProject_Dialog2.exe - 18 error(s), 0 warning(s)
-----------------
header file:
--------------
// CodeProject_Dialog2Dlg.h : header file
//
#if !defined(AFX_CODEPROJECT_DIALOG2DLG_H__0FA170BA_1857_11D9_8F7A_444553540000__INCLUDED_)
#define AFX_CODEPROJECT_DIALOG2DLG_H__0FA170BA_1857_11D9_8F7A_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCodeProject_Dialog2Dlg dialog
class CCodeProject_Dialog2Dlg : public CDialog
{
// Construction
public:
CCodeProject_Dialog2Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCodeProject_Dialog2Dlg)
enum { IDD = IDD_CODEPROJECT_DIALOG2_DIALOG };
CListBox m_ProgTech;
CListBox m_YourFavoriteTech;
CString m_strFirstName;
BOOL m_bJava;
CString m_strLastName;
int m_nTitle;
BOOL m_bVisualBasic;
BOOL m_bVisualCpp;
int m_Win98;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCodeProject_Dialog2Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCodeProject_Dialog2Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
/***THIS IS WHAT I ADDED: *****/
private:
CString m_strFullInfo;
CString m_strOperatingSystem;
CString m_strProgLanguage;
public:
void PopulateProgTech();
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CODEPROJECT_DIALOG2DLG_H__0FA170BA_1857_11D9_8F7A_444553540000__INCLUDED_)
.cpp file where a lot of the errors are:
------------
// CodeProject_Dialog2.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "CodeProject_Dialog2.h"
#include "CodeProject_Dialog2Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
/*THE FIRST ERRORS POINT TO THIS LINE:*/
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCodeProject_Dialog2App
BEGIN_MESSAGE_MAP(CCodeProject_Dialog2App, CWinApp)
//{{AFX_MSG_MAP(CCodeProject_Dialog2App)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
---------------
|
|
|
|
|
|
Hi,
Thanks for taking the time to look over my code. I really appreciate it. Thanks to you, my program now compiles.
|
|
|
|