|
I wanted to know if VC++ was structured only like Visual Basic. That is to say that you have no choice but to just click+drag controls to your window and code for each separate one. Or can you do hard code and make your own buttons, checkboxes, windows, graphics, etc etc. If it can be used in the latter method, can MFC also be used? Or must you use the Windows SDK? I don't have the VC++ program yet, which is why I'm asking. And I'm rather new to windows. I've been using a Mac before so this is quite different. Also, I've heard both the name Visual C++ and Visual Studio. Are these synonymous or are they two separate programs with different uses? Thanks for your help.
|
|
|
|
|
You can certainly make totally customized controls. Most controls have an "owner draw" style, which means you're responsible for writing the code to paint the control. You can use MFC or the SDK, they both work.
There are tons of articles here about owner-drawn controls. Check out the Buttons section - there are several articles there.
Visual Studio includes VC, VB, Fox Pro, Visual InterDev, Visual Source Safe, and Visual J++. VC is also sold stand-alone.
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
Here is my error:
Compiling resources...
C:\msdn cd1\Samples\Msdn\Techart\asfasasfas\k.rc(14) : fatal error RC1015: cannot open include file 'dialogs.h'.
Error executing rc.exe.
Why is it i cannot open this .h file i have already added to my project?
|
|
|
|
|
You may need to set a path for the resource compiler - assuming you have the file somewhere, try opening the Project|Settings (Resources tab) and setting an Additional resource include path to the location of dialogs.h.
|
|
|
|
|
In a Visual C++ project you will find under the resource files a String file. If you dubble click a window will open and the string table will appear with in the first column a STRINGID and in the second column a text.
You can use this strings in your application with a simple statement liks this:
CString strMyString;
strMyString.LoadString(STRINGID);
|
|
|
|
|
What do you mean by "String Table"? An example would help us help you.
|
|
|
|
|
Hi,
I use NetMessageBufferSend like this :
NET_API_STATUS nErr = NetMessageBufferSend(NULL, bsToUserName, NULL, (unsigned char *)bsMsg, (sMsg.GetLength() + 1) * 2);
No problem if bsToUserName = "Computer1" and bsMsg="Good morning" for examples
BUT if i try to use others Net send options like :
* ( all alias )
/USERS ( for only connected users)
/DOMAIN:MyDomain ( for users of MyDomain)
NetMessageBufferSend fail and return ERROR_INVALID_NAME error. WHY???
Can anybody help me, please.
Thanks in advance
|
|
|
|
|
Hi
I like to export data into a MSExcel-table.
So it works, but how kan i change the sheets of my table ?!
I like to insert the data in into different sheets !
Thank's
|
|
|
|
|
Hello!
I'm having problems hosting the DHTML Editing component of Internet Explorer 5.5, the problem is:
When I create a MFC dialog app (or other type of MFC project) when I insert the 'DHTML Edit Control for ie5' the Developer Studio simple crashes!?
This strange thing only happens with ie5.5 with ie 5.0 there is no problem.
Can anyone help me with this?
Thanks,
Rui Lopes
|
|
|
|
|
I Tried it, but can't get it to crash.
(on NT4 and Win2000 boxes, both have IE5.5 and VS6)
However I did not try it out on all VS service packs.
Sorry that my answer does not fully help, but it at least lets you know that it is possible for it to work.
|
|
|
|
|
What? Is working in your box?
But I have the same configurations as you (VS6.0 SP4 NT4) and the damn thing doesnt work ((
The same happens to all computers in my school....
Does anybody have any ideia?
Thanks,
Rui Lopes
|
|
|
|
|
Does anyone knows if my program needs to access a function on a dll how to go about doing it?
|
|
|
|
|
HI,
there are two ways of doing it
1. You can link the dll statically, at the compile time and import the functions of the dll. And after that you can use them as any other function calls.
2. Loading the dll explicitley. This allows you to load the dll at the runc time and find the function pointer inside the dll and then invoke the function using the pointer.
Here you have to use WIN32 api
LoadLibrary (..) to load the library
GetProcPtr (...) to get function pointer.
Please refer MSDN or Advanced Windows by Jefry Richer for the above topic. Its described very well there...
Hope this helps you a bit...
Best Regards
Srinidhi Rao.
|
|
|
|
|
HI,
there are two ways of doing it
1. You can link the dll statically, at the compile time and import the functions of the dll. And after that you can use them as any other function calls.
2. Loading the dll explicitley. This allows you to load the dll at the runc time and find the function pointer inside the dll and then invoke the function using the pointer.
Here you have to use WIN32 api
LoadLibrary (..) to load the library
GetProcPtr (...) to get function pointer.
Please refer MSDN or Advanced Windows by Jefry Richer for the above topic. Its described very well there...
Hope this helps you a bit...
Best Regards
Srinidhi Rao.
|
|
|
|
|
Got a request for y'all... I have a copy of MSDN (taken from a server at work, so it's legal) but all the files are in the same directory. I'd like to split them back up into disc 1/2/3 images, so I could burn CDs (yes they would be for my own use).
Thing is, I have no idea how to tell which file belongs on which CD. Anyone know a way to do this? The MSDN viewer itself has to know, because it knows which disc to prompt for when you need to put in a disc.
(Work is real hardass about loaning out CDs, so I can't get to the original CDs. Funny how they do that, but have no problem posting the data on a server. *shrug* )
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
Please someone enlighten me.
how come derived class has smaller size than parent
eg sizeof(CButton) < sizeof(CWnd) ??
|
|
|
|
|
Because there is less code in it ?
Seriously - CButton inherits CWnd functionality, and then adds more. Why would this require CButton to be bigger ? The point of deriving is it doesn't need to contain all the code it instead inherits.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi
Is there any way i can find out the IRQs attached with a device or how to ennumarate the NIC cards and validate the physical existance of it. Differenting the virtual adapters?
Any kind of input would be great. Got to do it from 9X,NT to 2000.
I found a way to ennumarate USB ports on 2000 DDK
Info on any OS is welcome. or any open sources
Thanks
MRv
|
|
|
|
|
Can anyone give a source code which destroys device independent bitmaps for windows 98? Thanks a lot for helping.
|
|
|
|
|
You mean a DIBSection ? You want to free the memory, or draw over it ?
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
My save dib code is this : first, I create a bitmapfileheader then i write data to the bitmapfileheader .
Here is the actual code // if we have no data , we cannot save
if (m_pDib==NULL)
return(false);
CFile cf;
// attempt to create the file , CFile::modeCreate Directs the constructor to create
//a new file. If the file exists already, it is truncated to 0 length.
//CFile::modeWrite Opens the file for writing only, &= AND assignment
if(!cf.Open(pszFilename,Cfile::modeCreate &= CFile::modeWrite))
return(false);
//write the data
try{
//first create a bitmapfileheader
//with the correct data
BITMAPFILEHEADER BFH;
memset( &BFH,0,sizeof( BITMAPFILEHEADER ));
BFH.bfType ='MB';
BFH.bfSize = sizeof(BITMAPFILEHEADER) + m_dwDibSize;
BFH.bfOffBits = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + m_nPaletteEntries * sizeof(RGBQUAD);
//write the bitmapfileheader and dib data
cf.Write( &BFH , sizeof( BITMAPFILEHEADER ));
cf.Write( m-pDib, m_dwDibSize ));
Then what code should i put to destroy the dib ?
|
|
|
|
|
Why not 'delete m-pDIB' ? I assume it's a pointer ?
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I get some "Major" problems when I compile in VC++ 6.0 on Win2000?
this is what i get!
Linking...
LINK : error : Internal error during ReadSymbolTable
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 78003ABF
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00000000
CONTEXT:
Eax = 4002C874 Esp = 0012E488
Ebx = 00000000 Ebp = 0012E4A0
Ecx = 00000000 Esi = 4002FFC8
Edx = 00000000 Edi = 00000000
Eip = 78003ABF EFlags = 00010246
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012E488 Dr3 = 00000000
Dr1 = 0012E4A0 Dr6 = 00000000
Dr2 = 00000000 Dr7 = 00000000
Error executing link.exe.
Tool execution canceled by user.
Anny sugestions?
BTW:I did not cancel the execution
|
|
|
|
|
Are you using the latest Visual C++ service pack? (SP4)
I have been using Visual C++ on Win2000 for a year now without any problems.
|
|
|
|
|
Yes I am
Win2k is ghosted with Norton ghost!
I think the problem is ghostrelated??
|
|
|
|