|
What is the windows message that notifies every new application opened
Shenthil
|
|
|
|
|
I dont think there is any windows message for this purpose.
|
|
|
|
|
If a new window is created it is WM_CREATE. No idea about application.
|
|
|
|
|
How Can I use functions such as "ConnecntIpc,disconnectipc,netscheduljobadd"in Visual C++? Why Visual C++ regarded them as "undeclared identifier "?Thanks!
|
|
|
|
|
Hello,
I use Source Insight at work and enjoy the interface (large c/c++ tree for embedded systems built on a mounted unix box). I do some MFC work at home using the VC++ 6.0 interface and find that I long for the Source Insight style.
Is the new .net C++ code browser a great improvement over 6.0 and will it offer similar features to Source Insight?
Or, if you use Source Insight with VC++ 6.0, how can I make Source Insight call the MFC compiler locally (if there's a way).
Also, I'd like to implement some souce control for my home projects. Any recommendations?
thanks,
JennyP
|
|
|
|
|
Browser: SourceNavigator from RedHat. It is free and runs on Windows plus Linux. google for "Source Navigator".
Version Control: CVS is the "standard". Also free. Also runs on Windows or Linux. Used for version control on internet-developed programs. Simple to learn; plenty of docs available. LinCVS is a GUI version that I like. Runs on Windows too.
|
|
|
|
|
I tried to declare IHTMLDocument2 interface (IHTMLDocument2 *pDoc=NULL;) but the compiler says that IHTMLDocument2 is an undeclared identifier.
What header/project setting should i use be able to use this ?
|
|
|
|
|
I want to use MFC in a win32 prog what should I do?
|
|
|
|
|
Open the "Project Setting", and choose "Use MFC ....".
Maxwell Chen
|
|
|
|
|
When u say a Win32 application, its understood that its a C program and not C++ program.
Strictly speaking, MFC calls cannot be made from Wni32 program.
If still u wanna use, go to project setting and specify 'Use MFC'
Rahul
|
|
|
|
|
Rahul200676 wrote:
When u say a Win32 application, its understood that its a C program and not C++ program.
Win32 apps: 32-bit Windows applications. Can be written in C, C++, ASM, VB, Delphi, Java, etc.
Rahul200676 wrote:
Strictly speaking, MFC calls cannot be made from Wni32 program.
MFC is in C++, therefore C programs can not invoke MFC.
Rahul200676 wrote:
If still u wanna use, go to project setting and specify 'Use MFC'
Should reply to tank1025, not to me...
Maxwell Chen
|
|
|
|
|
I want to write a NULL DACL which will allow access to everyone,but I know the Security issue so little.who can give me some examples to study?(not use CServieModule)
appreciate any help!!
|
|
|
|
|
I want to write a MFC Activex .
I use a worker Thread.In this Thread i get data from socket and raise some Events,but some Events failed.
(
Unhandled exception in Project1.exe (MSVBVM60.DLL): 0xC0000005: Access Violation.
)
i find error occur in COleDispatchDriver::InvokeHelperV,but i don't why it occur.
Can you help me?
zhangfang
|
|
|
|
|
I'm using WebBrowser control in my app and I've read that you can get an access to the DOM of the page u're loading, or at least the document..
but in msdn there are no actual samples (source code about it). Let's say that I want to access the value of a input text in my page.
Is there a tutorial/samples bout this ??
|
|
|
|
|
Hey does anybody have code that does a recursive search for a certain folder name?
-Ryan M.
|
|
|
|
|
search for createtree view control in .net MSDN.
Cheers
|
|
|
|
|
Try this search.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Is there a function similar to setdlgitemtext(); that will allow me to display graphics on a dialog?
|
|
|
|
|
No, as far as I know there is not a function like that. What you can do is use SendDlgItemMessage or SendMessage to send a STM_SETICON message to a Bitmap or Icon control.
HICON LoadImage(hInstance,MAKEINTRESOURCE(IDI_ICON1),IMAGE_ICON,GetSystemMetrics(SM_CXICON),GetSystemMetrics(SM_CXICON),0);
SendDlgItemMessage(hDlg,IDC_STATIC1,STM_SETICON,(WPARAM)(HICON)Icon,0); Hope that helps
P.S. if you use a bitmap, change the Icon stuff to Bitmap and the dementions to the height and width of the bitmap. check out the LoadImage function on MSDN for more information
wWw.KruncherInc.cOm - My cool programs
|
|
|
|
|
No! You can use a picture control to display an image in a dialog, it may have a message that allows you to change the picture/bitmap it contains; otherwize you may need to draw it youself via the OnPaint method/function of your CDialog derive class. Take a look at the "Dialog and Windows" section of codeproject, it may be of help.
Good Luck!
INTP
|
|
|
|
|
Why do alot of C++ programmers (mostly MFC) use the TEXT macro (or function?)?
MessageBox(0,TEXT("Message"),TEXT("Title"),0); when you can just do:
MessageBox(0,"Message","Title",0);
Also do you need to specify the type, like this:
MessageBox((HWND)0,(LPSTR)"Message",(LPSTR)"Title",(UNIT)0);
wWw.KruncherInc.cOm - My cool programs
|
|
|
|
|
if you building under _UNICODE then this statement
KingKruncher wrote:
MessageBox(0,"Message","Title",0);
would fail.
but
KingKruncher wrote:
MessageBox(0,TEXT("Message"),TEXT("Title"),0);
this will work.
|
|
|
|
|
It has nothing to do with MFC. If u want ur MFC/API program to be portable and compatible with systems that use UNICODE representation of characters, then use the TEXT MACRO before all strings.
...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
|
|
|
|
|
It is pretty simple!
"Message" is ASCII single byte code.
L"Message" is double byte code.
If you might want to compile your code, using the MS SDK, for UNICODE (native to NT/2000 and above - not 95/98/Me) then you should use the macros _T() or TEXT(). What those macros do or do not do is add the 'L' in front of the string, based on whether you are creating an ASCII standard version of your program or a UNICODE version of you program.
It's that simple. As a general rule use the _T() or TEXT() for you text string when programming for windows, but stay alert for function that take arguments like LPSTR or LPCSTR, because they can not handle UNICODE strings. Functions that take arguments like LPTSTR and LPCTSTR are UNICODE compatible.
INTP
|
|
|
|
|
I have successfully utilized a 3rd party activex control w/VB6, however, I would like to rewrite the program in Visual C++ for several reasons, one of which is to have it run from the commandline. The ActiveX control is registered on my system, but I really have no idea where to start.... Is this possible, and if so, what would be my best strategy?
Any help is appreciated...
|
|
|
|