|
Declare that function with the __stdcall prefix, in your application.
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
Sup? I wanna make a MDI program using WIN32 only (I don't wanna mess with MFC (yuck, to VB for me)). I know you use like WM_MDICREATE and/or CreateMDIWindow() but I've tryed it and it won't work. I can't find any WIN32 MDI tutorials or code online. If you could give me a link to some code, or something that would help me out alot, Thanks.
Kruncher, www.KruncherInc.com <- some cool OpenSource programs there.
|
|
|
|
|
If you don't want to use MFC why not use some other framework such as WTL or Qt? It's got to be less painful than straight Win 32.
Kevin
|
|
|
|
|
Nah, I've thought about using something like that but I wan't to learn not cheat. Yes I know its not "cheating" but it really doesn't teach me anything except how to use frameworks.
Kruncher, www.KruncherInc.com <- some cool OpenSource programs there.
|
|
|
|
|
I've never done straight Win 32 programming (though I recently had to adapt a program that did and turn it into a DLL). But it's my opinion that you still learn enough from frameworks such as MFC. It has been described as just a "thin" wrapper around the Win 32 API and in fact (perhaps for this reason) is not considered especially good OO! MFC is not just the same as doing GUI work in VB. It requires you to do a lot more.
But if you still prefer straight Win 32 then Charles Petzold's Programmming Windows is the Bible. http://www.charlespetzold.com/pw5/[^]
Kevin
|
|
|
|
|
How to post from VC++ application information to the WEB-form ?
or how to automatically access data, that required logging process , using descktop application ?
thank you !
|
|
|
|
|
|
Needs to compile some .cpp files from a running program.
Somebody got any suggestions how to do this ?
|
|
|
|
|
Just CreateProcess() for the cl.exe
|
|
|
|
|
i have a small launcher program showing icons from shortcuts. most of the shortcuts are fine, but i have a couple where i cannot load the icons with SHGetFileInfo .
one is a shortcut to my DUN connection, and the other is a shortcut to display properties in control pannel.
i think i need to do something with IExtractIcon . however, i am now TOTALLY out of my depth i have the impression that i cannot simply create an instance of IExtractIcon , but i dont know what to do instead.
can anyone provide some pointers on what i need to know? examples seem to be rather thin on the ground.
|
|
|
|
|
I have a program with the following defined in a header file that is included in many files. I need the var to be global so I have this in the header file:
Global.h
typedef struct _D2N_GLBL_STRUCT
{
long runways_line_pos;
...
}D2N_GLBL_STRUCT;
extern D2N_GLBL_STRUCT *D2N_GLBL;
.cpp
D2N_GLBL->runway... = -1;
I get linker errors saying it is undefined or already defined in files that I've include the global.h file.
What am I doing wrong?
Thanks for any help
|
|
|
|
|
You need to include global variables in one source file without the "extern" keyword.
One way to do this is:
#ifndef INIT_MY_GLOBAL
extern
#endif
D2N_GLBL_STRUCT *D2N_GLBL;
then in your main .cpp file use:
#define INIT_MY_GLOBAL
#include <global.h>
Having said all that globals are a realy bad idea.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
In the global.h you have
extern D2N_GLBL_STRUCT *D2N_GLBL;
Did you put
D2N_GLBL_STRUCT *D2N_GLBL; in one of the .cpp file?? if you dont do it, it will give you linker error.
P.R.A.K.A.S.H
|
|
|
|
|
Hello!
I would like to know that how can I call up the Standard Windows print dialog using vc++ (non MFC) ?
And, at the same time, a file (i.e. a MS Word doc.) is sent to this print dialog for printing.
Thanks a lot for answering my question !! =^^=
|
|
|
|
|
How to get the size of CScrollView's scrollbar?
|
|
|
|
|
Use GetSystemMetrics() with either:
SM_CXHSCROLL,
SM_CYHSCROLL Width, in pixels, of the arrow bitmap on a horizontal scroll bar; and height, in pixels, of a horizontal scroll bar.
SM_CXVSCROLL,
SM_CYVSCROLL Width, in pixels, of a vertical scroll bar; and height, in pixels, of the arrow bitmap on a vertical scroll bar.
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
i m new to MFC
how can i create Toolber in Dialogbased.
plz send me code
thanx
|
|
|
|
|
Create a member variable of CToolBar,
Create the toolbar with the dialog window as the parent window.
You can create a toolbar resource and load the toolbar using LoadToolBar method.
I am not sure about this but i guess this should work.
P.R.A.K.A.S.H
|
|
|
|
|
|
Hello,
I would like to use VB activeX SSTab control 6.0 SP5 in VC++.
So I add this activeX to my project (Dialog Application), I add one of this tabbed dialog in my dialog to do a kind of property sheet.
Ok, it is very easy to create a property sheet with x tabs, choose the style, the color, etc etc ...
But :
1) Why can't I see clearly the control in my dialog when I create it? I just can see the border but I can see it when I launch the app or have a preview of the dialog in the ressource editor ...
2) when we read MSDN, it is easy to add controls in the tabs by just selecting the tabs and add control in it ... when I do it, controls doesn't "belong" to the tabs, they are just over it and desappear as soon as I click on another tab ... what's wrong with this ?
3) how do I 'link' my SSTab pages with the controls or with the other doughter dialogs, as I do with property sheet ?
4) How do I set the values in these pages? How do I retrieve the input values, the clicks done on various controls, etc etc ??
I do not find any doc describing how I should do this
Any infos appreciated
Thanks in advance
DD
|
|
|
|
|
Can somebody tell me how I can tell CHTMLView to navigate to an Resource ?
|
|
|
|
|
|
Yeah. THX. Sorry but i think i wasn't too preciously. I wanted to know how I can tell the class (CHTMLView) to navigate to an resource and not to an url.
SRY.
MFG
RedDragon
|
|
|
|
|
You could use Paul DiLascia's CHtmlCtrl (which is really a CHtmlView ) to do this. See this[^] article for detailed instructions.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|