|
hello people.i would like to know if it's possible in vc++ 6 to have a feature that .net has.i mean the one that u can hide a functions or all the functions and a + appears.i hope u understand my question.like tree controls...
thx!
|
|
|
|
|
I am looking at the windows forms. Everything looks so easy now..like making and attaching menus etc. But theres nodrg and drop of controls from a toolbox and figuring out where to position controls is such a hassle. SO does any one actually use this for GUI design? Also if theres no doc-view architecture, then it looks like your app is just a bunch of CDialog type windows......
What are the reasons why one would want to use windows forms and not MFC?
Appreciate your help,
ns
|
|
|
|
|
First easy answer, why not, it's a new technology, and getting the hang of it as early as possible is a good thing.
the visual aspect of building UI in VC6 is not yet operation in the .net version of Managed C++; will be in Everett (the next version of VC++.net, me think).
But you should try to learn as much as possible how to do things by hand even if there's a UI builder, it will force you to learn more of the underlying concepts and potential problem.
Windows Forms is not a dialog based toolkit, the frame work offer much more than dialogs; the Doc-View architecture is not bad if you keep inside the limitation of the model, we removed the concept of the doc-view by handling everything ourselves, and at the end, made life so much easier.
I like the .net framework, I wish I could spend more time on it.
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Thanks! Yes _ I am enjoying the ms press book "step by step..." except I cant get its sample code to compile for some reason. Anyways its very clean and wrapped up and not difficult to switch to conceptually.........
Appreciate your help,
ns
|
|
|
|
|
I think the latest version of VS .Net (due 4/23) has a resource editor. It should be part of your MSDN release.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
i don´t know how can i convert from 'class _variant_t' to 'int' ????
thanx for your time
el hombre arriesga su vida cada vez que elige y eso es lo que lo hace libre
|
|
|
|
|
If i could have a better example of what you are trying to do, i might be able to help?
|
|
|
|
|
it may be help you.
_variant_t vt;
int nValue;
nValue=vt.intVal;
anju
|
|
|
|
|
Hello,
I am trying to write this array of the following type to file:
typedef struct tagDIBFILEHDR
{
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} DIBFILEHDR;
Thats the same struct as BITMAPFILEHEADER.
The correct output should be (hex):
42 4D 36 68 00 00 00 00 00 00 36 04 00 00
But after compiling the program with MSVC++ it outputs the following:
42 4D 00 00 36 68 00 00 00 00 00 00 36 04 00 00
So why does MSVC++ swap/insert zero bytes there???
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Byte packing. Check out the /Zp compiler switch.
|
|
|
|
|
Best not to apply that globaly, it might have a serious impact on performence.
Surround the offending struct like so:
<br />
#pragma pack(push,1)<br />
struct blah<br />
{<br />
}<br />
#pragma pack(pop)<br />
That will force the compiler to use byte alignment just for the offending structure. A better soloution would be to provide aprropriate iostream serialisers.
Ryan
|
|
|
|
|
The pragmas work perfectly! The data is written correctly to file. I will use your method because apps including my sources don't have to be set to one-byte-alignment manually then.
Thank you!
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
I set it to one-byte-alignment and now it works!
Thank you very much!!
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Can someone provide me with an explanation of a CALLBACK
function? In other words, what is a CALLBACK function?
Basic, I know....
Thanks.
|
|
|
|
|
It provides a means for Windows to communicate with your program. For example, the EnumFonts() API enumerates the fonts available on a specified device. The third parameter is a function pointer that you supply that EnumFonts() will call for each font found. Inside your callback function, you'd receive information about the font (e.g., name, height, quality, character set).
|
|
|
|
|
The CALLBACK macro resolve to something like __stdcall , which is a calling convention for callback fucntions used by Windows. It is there to prevent you from using other calling convientions, like __cdecl , which would make your program crash.
From windef.h:
#define CALLBACK __stdcall
#define WINAPI __stdcall
#define WINAPIV __cdecl
#define APIENTRY WINAPI
#define APIPRIVATE __stdcall
#define PASCAL __stdcall
|
|
|
|
|
I was wondering if anybody knows of where i could find some simple tutorial on using sockets in vc++ I had a look at the msdn site and i found some stuff on CSocket for the MFC classes but i was more interested in using the winsock api
|
|
|
|
|
Easiest way to go...
Google Search[^]
-Mike Zinni
"No sh*t it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
|
|
|
|
|
One excellent reference on winsock is right here at CodeProject.
http://www.codeproject.com/internet/
Kuphryn
|
|
|
|
|
I can't figure out how to change the size of my mainframe in my project. I'm using CFormview. When I execute the program, the default size of the window is too large.
|
|
|
|
|
->MoveWindow (...); could help you out ...
|
|
|
|
|
You would adjust the placement/size in the CFrameWnd::PreCreateWindow() method.
|
|
|
|
|
Hi.
I wrote a small drawing SDI aplication for my child, (2 years old). He press a key, and he draw a figure in a Window view. But I want to disable the "Window button" and the "context menu button" of the keyboard, 'cause I won't show the start menu and the context menu while the aplication run, but when I close it I want to enable the buttons again.
How could I do that?.
Thank you and regards from Argentina.
Demian.
Demian.
|
|
|
|
|
One solution is to add a handler for PreTranslateMessage() and handle the virtual code accordingly.
Kuphryn
|
|
|
|
|
Or, you could handle the WM_SYSCOMMAND message and trap the SC_MOUSEMENU and SC_TASKLIST command types. See WM_SYSCOMMAND in the doc for details.
|
|
|
|