des hätsch dir auch so sagen können (und ich glaub des hab ich auch schon ;)
eXplodus
Posts
-
Open access-file without install -
Get Ctrl Data out of SubForm Dialog to Main Dialogtwo ways. first. on the close routine of the options dialog. you send the text you wand to you parent and save it there. second. (i dont take a look on the childdlg.asp) if you use a normal dlg. with DoModal. then create your dialog on the stack not on the heap. mydialog* blub = new mydialog; blub->DoModal(); CString myvar = blub->mycstringvar; delete blub;
-
handling acceleratoryou should be watch what you send after you handle the message. the first time you hook into the message, handle it. then "delete" it. so that no other window handle the message again.
-
How to change size of window.->MoveWindow (...); could help you out ...
-
mfc dll <-> app communicationi know it. but i need to get pointers back to my app. and messages are a bad way. but the only way that i know
-
mfc dll <-> app communicationthats ok, and how did i got a pointer back to my app? and (myApp*) AfxGetApp() ??
-
mfc dll <-> app communicationlittle question. is there a chance to get a pointer back to the application. and to use the functions of the application? or to get data from the application. or is the only way to send messages? how could i communication between the dll and the application. i could call a dll function. but how is it if a export a view and wanna call a function from the mainframe or from the document class? any ideas?
-
Drawing an Integer !!looks like that u wanna use unicode CString blub; for (int i=0;i<100;i++) { blub.Format(L"%i",i); graphics.DrawString(blub, -1, &font, PointF(600,100), &solidBrush); } ...
-
modifiy IHTMLTable via IHTMLCollectiondoing a invalidate(), updatewindow() could help. or if you wanna save it, get_all again, and save it to the file and refresh it.
-
crypted CFile, used with CArchivesomewhere on the web, i thought it was here on codeproject but i dont know it really anymore i found an article frome someone who used a CFile and make it own crypted version of it and make it usable with CArchive. Did someone know this article. I dont find it anymore. :((
-
MFC Proxy woesCHttpFile *s; CHttpConnection *c; CInternetSession *is; if (useProxy) is = new CInternetSession(NULL, 1, INTERNET_OPEN_TYPE_PROXY, ProxyURL); else is = new CInternetSession(NULL, 1, INTERNET_OPEN_TYPE_DIRECT); c = is->GetHttpConnection("ip", (INTERNET_PORT) 4000); wsprintf (param,"nickname=%s&password=%s&entranceRoom=%s",User,PassWd,RaumName); wsprintf (length,"Content-Length: %d\r\n",strlen(param)); strcpy (header,hdrs2); strcat (header,hdrs3); strcat (header,hdrs4); strcat (header,length); strcat (header,hdrs5); wsprintf(rline, "/Login.html"); s = c->OpenRequest("POST",rline,referer,0,NULL,"HTTP/1.1",INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RELOAD); LPCTSTR lpszHeaders = header; s->SendRequest(lpszHeaders, strlen(header), param, strlen(param)); f = new fstream("back.html", ios::out); while (s->ReadString(l) != FALSE) { ... // some *f things } delete f; s->Close(); delete s; delete c; delete is; this is only a little example from my code ... not even perfect but its working. u always have to check ur headers and the things that you send. best way to check is a html browser and a packet sniffer. there are many outta there. with the sniffer u see the original header and data. and could also check your program that it send also the right one. bye :suss:
-
activexhi there i want add an activex control into my project. its a little bit complicated to explain. on the start of my program i start all of my windows and minimized them to 0,0,1,1 most of them are CDialog some CFrame... i dont use mfc ... only a very little bit. now i want to insert a activex same way. start "minimized" without data. this works. but if i want to insert data. then i hang up. how can i insert an activex "without mfc" ... or only little little bit of mfc ... thx :eek: