|
|
Hello everyone,
I'm tryin to build a new vc++ MFC project which should result in a dialog with splitter windows. I went through few tutorials but that didn't had any direct step by step approach. Whenever i see a ample code for splitter window example project, i dont understand where the splitter dialog resides in the resource. I would like anyone to suggest a easy way of doing the same.... Is it necessary to write the code manually instead of any drag and drop approach.... Plz help...
The problems that exist in the world today cannot be solved by the level of thinking that created them.
- Albert Einstein
|
|
|
|
|
Look here
You won't find the splitter window in the dialog resource because it is a window! The splitter window must be attached to a frame window, so you have to manufacture one of these in the dialog class. Each of the splitter window panes requires a view class so you have to generate these as well. See CreateViews() in the sample application.
|
|
|
|
|
Hello
Im building a client server application where the client will send information to the server using Visual C++ .NET. The communication and sending information to the server has succeed. I want to write the information that is retrieved by the server to Microsoft Access. How can i accomplish this? For your information, Im using the win32 console application as the C++ platform. Is there any sample code which i can refer to? A friend of mine told me that there is something to do with managed C++. I really dont know anything about managed C++. Is it the same with the normal C/C++ code? What are the difference? Sori due to my 'basic' questions. hehe. Kinda desperate currently. Anyway, thank you and your reply is really appreciated.
|
|
|
|
|
hi,
Iam new to openGL world. My requirement is to develop an openGL based display in VC++ Activex environment. so plz any one suggest me how to start and if any sample code is there please forward me
regards,
veeru
|
|
|
|
|
The openGL Red Book is a great resource to start learning about openGL: it is available online here[^].
PS: as far as I know, it is a legal on-line version. If you think it is not the case, please tell me and I will remove the link. This comes from the "About this guide" page:
This book is freely accessible on the Internet at http://arctic.eng.iastate.edu:88/SGI_Developer/OpenGL_PG/. However, it is presented in a format unsuitable for download and off-line browsing, since it is accessed and cross-referenced using cgi scripts. I manually downloaded and edited all the text and figures, removed most of the links in the text and reformatted the chapters into single files. None of this was made for profit or for the purpose of violating copyright - the book was online, and I just made it easier to use and download. All the original copyright still remains.
|
|
|
|
|
In addition to the above reply, check out this article[^]. Also, see this search results[^].
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I add a bitmap to the resource, the bitmap is not as big as I expected.(likewise the bitmap is 100*60, but I just want it as 32*32). I know I can use a picture program to achieve this goal, but I just want to do it in the code.
And I'm not drawing the bitmap myself using CDC, but use it in the CPropertySheet, use a HBITMAP as parameter, so can I CBitmap::LoadImage load the original bitmap, and deal with it in the memory to transform it as a smaller one? then pass the HBITMAP handle to the parameter.
If you have some idea, plz give me some code sample, thx a lot.
|
|
|
|
|
Load Bitmap using LoadImage API. in 4th and 5th parameter pass dsired width and height. Pass HBITMAP returned by LoadImage in CBitmap.Attach() method and casll CBitmap.Detach() when work finish.
|
|
|
|
|
|
HI,
while Integrating Latest development in my code , i faced these errors.
please look these errors , and give your advice to fix this.
ClientDlgs4.obj : error LNK2001: unresolved external symbol "public: __thiscall CDynamicAccessorEx::CDynamicAccessorEx(void)" (??0CDynamicAccessorEx@@QAE@XZ)<br />
ClientDlgs4.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CDynamicAccessorEx::~CDynamicAccessorEx(void)" (??1CDynamicAccessorEx@@UAE@XZ)<br />
UnicodeReleaseEnterprise/DUClient.exe : fatal error LNK1120: 2 unresolved externals
Thanks,
Royal.
|
|
|
|
|
Where does the CDynamicAccessorEx class comes from ? Did you make sure that the cpp file of this file is part of your project ? A frequent error is also to declare a construtor and destructor but forget to give a body (and it seems that is your case, because only those two functions are missing).
Make sure you have a body for those (even if it is an empty one).
|
|
|
|
|
construtor and destructor have function body, CDynamicAccessorEx is part of project.
|
|
|
|
|
Royaltvk wrote: construtor and destructor have function body
Can you post those functions here ?
|
|
|
|
|
Hi,
Have you provided the definition for all the class members ?
Regards,
Paresh.
|
|
|
|
|
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i want ot make chat server plz tell me how can i write the code for fd_write
i have to perform if one client sent data to server and sever sent data to their particular client
plz give me anwser as soon as
priyanka chauhan
gujarat india
|
|
|
|
|
priya_chauhan09 wrote: tell me how can i write the code for fd_write
Use a keyboard and an IDE like Visual Studio. That's how we do it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
HI
Plz don’t discourage junior members
|
|
|
|
|
Rajesh R Subramanian wrote: Use a keyboard and an IDE like Visual Studio. That's how we do it.
Hi
Plz don’t discourage junior members
|
|
|
|
|
mirtu wrote: don’t discourage junior members
I appreciate your attitude toward encouraging people on the forum. But, the fact that the OP is a junior member has nothing to do with my reply. I would have given an even more discouraging reply if the OP was a senior member. Generally, a person posting a query on a message board is expected to read the guidelines and follow it. The same applies to this message board too. I wouldn't be discussing any further with you on this topic.
PS: Please try to avoid using SMS language as I believe that you have a full QWERTY keyboard.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Please try to avoid using SMS language as I believe that you have a full QWERTY keyboard.
I'll have to remember that one.
|
|
|
|
|
This way you can write...
WSAEventSelect(listeningSocket, hEvent1, FD_READ | FD_WRITE | FD_CONNECT | FD_ACCEPT)
or loat of example on codeproject or codeguru.
|
|
|
|
|
See Here[^] and Here[^].
"It is easy enough to be friendly to one's friends. But to befriend the one who regards himself as your enemy is the quintessence of true religion. The other is mere business."
- Mohandas Karamchand Gandhi
|
|
|
|
|
Hi Firends,
I am using the fllowing code to create a meta file
HDC hDCMeta = CreateEnhMetaFile(m_hDC, "D:\Data.emf", NULL, buf);
m_hDc is handle to printer dc. buf represents the name of application.
after creating the meta file I am drawing some information with m_hDC and at the end closing the metafile.
m_hMeta = CloseEnhMetaFile( hDCMeta );
CloseEnhMetaFile() function fails as it returns NULL but when tring to get the error message using GetLastError its returning ERROR_SUCCESS.
Before calling CloseEnhMetaFile() I prompted a messagebox and checked that the file Data.emf created in D:\ drive with size more than 1 GB. (I am having 1 GB ram).
soon after CloseEnhMetaFile() call fails the file also get delete disk.
Please help.
Sandip
|
|
|
|