|
I am looking for solution to my problem. Then help me clearly.
I don't know where to look for StarDoc()
|
|
|
|
|
I am looking for solution to my problem. Then help me clearly.
I don't know where to look for StarDoc()
And give my one example if you have it
|
|
|
|
|
I see, they are CDC fonctions. But how to use it, give me example
|
|
|
|
|
|
thanks a lot for your help
|
|
|
|
|
i'm fresh for vc++. Could anyone tell me where can learn the 1st steps and so on to build a gui? What book is easy to understand? thx a lot.god bless u all the time.
|
|
|
|
|
|
|
Hello, I´m Newbie in VC++, but i´m prgramming c++ very well.
I want to write a browser application with the feature to browse over proxy. who can help me and give tips, which class i have to use.
what about the problem with the proxy?
I´m using Visual C++ 6.0
thanks a lot.
|
|
|
|
|
How to get the name of the files in the zip file!
--------------------------------------------------------------------------------
Hello ,I want to know the file names in the zip files. Such as, I have the "example .zip " files ,it is zipped by the book.jpg and the test.xml.If I
release the "example.zip" to the "C:\\test",how i get the path --"C:\\test\booka.jpg" and "C:\\test\test.xml".If I don't release the example how can I get to know the names of the files in it??
|
|
|
|
|
|
I have written a code that has a window procedure for the main window. I trapped WM_CHAR message and wrote this code:
98 ......
99 case WM_CHAR:
100 MessageBox(hwnd, TEXT("KJHGKIF"), TEXT("KHTIUYT"), MB_OK);
101 return 0;
102 ......
(hwnd is a handle to the main window)
when run, I press a key and see a message box. at this time, window procedure is stopped at line 100. when I move messagebox, the client area of the main window is repainted. meaning that WM_PAINT is invoked. how can it possible? window procedure is running at two points?
|
|
|
|
|
Yes it is possible (and normal). messagebox has a dialog box loop ( something that reads message from the queue and dispatches them) which does not exit until you press one of the buttons. All modal dialog boxes have this. This allows other windows to be repainted when you move your dialog box (or to deal with timers or all sorts of events).
It looks like multi threading but it is not!
|
|
|
|
|
I guess the method is something like this: the function pushes all its data onto the stack, calls itself, after finish it pops the data back and continues its process. like the function for calculating n! (n! = n * (n - 1)!).
I guess messagebox sends a WM_PAINT message to its parent window using this method (and also when we call SendMessage function from the window procedure to send itself a message). is my guess true?
|
|
|
|
|
Absolutely true... it is absolutely like a recursive call
|
|
|
|
|
I have an MDI application created using VC++ 6.0. It has several dialog based executions. Now I want to seperate one such dialog based part and create a seperate new dialog based application.
Any suggestions, steps or points to be considered will be appreciated. Thank you in advance
|
|
|
|
|
Use the wizard to create a new dialog-based application. Copy/paste your dialog resource(s) from the original application to the new app; note that it's sometimes easier doing this by editing the .RC file in the source editor rather than the resource editor. Copy/paste the dialog classes as well.
This assumes, of course, that the dialog functionality is self-contained, and doesn't rely on the rest of the application. If this assumption isn't valid, you are going to have more work ahead.
Software Zen: delete this;
|
|
|
|
|
Please have a look at the below code patiently..
hi i've done the simple version of client server application.. i've handled the abrupt disconnection of client (not using Try/catch).. its fine.. but please tell me how to reconnect to the client which wants to connect again.. what i've done is
GetDataThread()
{
while(1)
{
if (client disconnects)
{
break;
}
}
RestartSock(); // comes here after "break"
}
RestartSock()
{
EndThread(GetDataThread); that Continuously looks for accepting data from client.
initSock(); ---->ok
bindSock(); ------>ok
listenSock();---->ok
acceptSock();----------->NOT OK ... the ctrl's not going abov this .(see Acceptsock)
AfxMessageBox("Client Connected");
AfxBeginThread(GetDataThread,this);
}
void acceptSock()
{
SOCKET AcceptSocket;
while (1) //waits for client to connect
{
AcceptSocket = SOCKET_ERROR;
//NOT COMMING OUT OF The BELOW LOOP WHEN THE CLIENT CONNECTS THE SECOND TIME...
while ( AcceptSocket == SOCKET_ERROR ) ------->
{
AcceptSocket = accept( m_socket, NULL, NULL );
}
m_socket = AcceptSocket;
AfxMessageBox("Client Connected");
break;
}
}
for the first time everything is fine... but when the client tries to connect second time.. the client says that Its Connected but its not done.. the Server goes into the ACCEPT Loop.. please help me out...
Regards,
V
|
|
|
|
|
same inside "How to reuse a socket?"
V
|
|
|
|
|
anyway i got it ... thatz .. WSACleanup()'d do the job...
Thanks to Myself..
V
|
|
|
|
|
I have a function that will draw to an HDC, I need to create a bitmap from that, what would be the best method? Can I create a bitmap and get it's HDC or something like that?
Thanks!
-- Rocky Dean Pulley
-- DreamSys Software
-- http://www.dreamsyssoft.com
|
|
|
|
|
Try to use
HBITMAP CreateCompatibleBitmap(HDC hdc, int nWidth, int nHeight);
OR
CDC* pDC = CDC::FromHandle(hDC);
CBitmap* bitmap = pDC->GetCurrentBitmap();
--Tejan
|
|
|
|
|
I want to execute an application in a computer different from the one where I've developed it. The computer doesn't have VC++ installed. After copying the folder, with the exe, the OCX (I've already registered it in the target computer) and a dll used, I execute the exe and I receive a windows error (the typical popup window prompting to report the error to Microsoft) pointing that the problem is in mfc42. I've replaced this dll with the newest one and the problem persists.
It has to be something related with the use of the OCX because a simple MFC app works perfectly...
Any idea about what's happening?
thanks in advance,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
|
No, I haven't created, it's MSChart component (MSCHRT20.ocx).
I've tried in debug mode and the crash is at winocc.cpp file, line 345 that is:
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)
Do I have to do something else than "regsvr32 MSCHRT20.ocx" ???
Thanks,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|