|
Hi,
Can u please elaborate
Thanks,
Lakshmi.
|
|
|
|
|
After CreateIndirect use something like:
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)
{
if (!IsDialogMessage(&msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
|
|
|
|
|
If dlg1 is a local variable then this is might be your problem. The CDialog dtor makes a call to DestroyWindow, so once the end of the function's scope is reached, the dialog will be automatically destroyed.
Try makeing the dialog a data member.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
I am developing a palm conduit in VC++, but I'm kinda stuck.
There are 3 parts to my question:
1. How do I connect to a URL and give it access to a page that requires a username and password?
2. How do I extract JUST certain peices of data from the web page (I know exactly where they are)?
3. How do I send back that data (download it)?
Rob Brunner
|
|
|
|
|
I want to know how can I (check the ex)
If I create a list I in the list I load 5 files when I click on the Compress button, he make ONE file with all the five in like a Self-Extractor but I don't want the Self-Extractor Sample
TIA
BLaZe
ICQ # 71682311
email : mpblaze@iquebec.com
|
|
|
|
|
Hello, I'm trying to access a variable in theApp from int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) using theApp.m_variable to access it.
.. when I type the "dot" in theApp.m_variable I get the list of all the variables in theApp but when I compile the whole lot, I get the error: "left of '.m_variable' must have class/struct/union type"!
One being bugged!
|
|
|
|
|
Place the following line at the top of MainFrm.cpp or in a header file if you use it a lot.
extern CMyProgramApp theApp; // This object is defined in CMyProgram.cpp
You could also use
CMyProgramApp* MyApp = (CMyProgramApp*)AfxGetApp();
|
|
|
|
|
Hello,
I urgently need help regarding the following.
1. I have made a VB OCX Chart/Graph control to be used within VC++ and i want to pass an array of data values to it through VC++.
Please guide me reagrding the same.I shall be ever thankful.
thanks in advance
-------------------------------------------
Dashmesh A. Singh
Tata Consultancy Services,
INDIA
e-mail: visions_next@yahoo.co.uk
dashmesha_singh@tcscal.co.in
|
|
|
|
|
Look at SAFEARRAY examples in MSDN!
|
|
|
|
|
Hi,
I can't remember and find the information about disabling an item in a ctreectrl, ie the item can't be selected, expanded, etc ...
Thanks a lot
Nicolas
|
|
|
|
|
In MFC, if I use _spawnl( _P_WAIT, process 2, str2, str3, str4, NULL ) function to call process 2 in process 1. How can I get the str2, str3... in process 1? Thanks. And can I hide the window of process 2 when the process 2 is running?
Kidd
|
|
|
|
|
Don't use _spawnl(). Use CreateProcess(), which is well-documented in the Win32 API documentation.
|
|
|
|
|
> How can I get the str2, str3... in process 1
If you spawn() from process 1 you already have str*. If you want to access the parameters in process2 (the spawned one), you'll have to use argc/argv arguments of main(). If process2 is MFC app, you can access the parameters using __argc and __argv which are global variables.
You can also play with ::GetCommandLine() API function.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Is there a way to let a program minimize/maximize from/to the systray? .. well, I know there is a way but how do you do it?
thatman - now doing the systray thingie
|
|
|
|
|
look here:
http://www.codeproject.com/datetime/traycalendar.asp
good luck
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.
|
|
|
|
|
hello,
I have imported a folder .cdb into a pocketpc from a database access .mdb,and i would like to open this database and to do some reqest on it.
Thanks
|
|
|
|
|
I need to make the following (very common I think) thing: an edit box for the e-mail address and a button "create new mail" using entered address.
The existing implementation of this function does not suit me because it's not working without properly setup e-mail client . The implementation is call to ShellExecute function with URL like "mailto:a@a.com..."
I've examined winzip using regmon (by sysinternals, Mark Russinovich & Bryce Cogswell). It opens key HKLM\Software\Clients\Mail, takes default client name, opens its key right here and uses the specified dll
Then "create new mail" window of the e-mail client opens.
May be there's some one else knows how to do that???
konst
|
|
|
|
|
The HKLM\Software\Clients\Mail registry key is used by MAPI - I think it's not necessary to read the settings and call DLL 'manually'. CDocument::OnFileSendMail creates a message with serialized document as an attachment and opens a default email client - have a look on this method.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Does anyone have any idea how to copy all the files and subdirectories of a directory I choose and exclude all the debug directories(for backup purpose)
Thanks in advance
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.
|
|
|
|
|
I'm using batch files and compression program for that. Basically, I have a batch file that searches .dsp file for lines containing references to project files. These lines look like this:
SOURCE=.\myfile.cpp
Then, I'm replacing "SOURCE=.\" with nothing; the result is list of files included by project. This list is passed to the archiver, which makes a compressed file.
I'm pretty happy with this solution; the only problem I initially had was related to the resource files - it turned out that you can have some file (.ico, for example) referenced by .rc, but not .dsp.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Does anyone have any idea how to copy all the files and subdirectories of a directory I choose and exclude all the debug directories(for backup purpose)
Thanks in advance
Considderd to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.
|
|
|
|
|
Not a true answer to your question but it may help... I use a neat little freeware program called CleanEx by Paul Dixon:
http://www.elphin.com/products/cleanex.html
Basically it deletes all the temp intermediate files made by VC in my debug and release directories.
I simply run that and zip whats left!
You can configure the types of files it deletes, so it may be useful to you.
--
The Obliterator
|
|
|
|
|
I am using the STL vector from VC++
How can I look at the entries like MyVector[0]
The Compiler says
'overloaden operator not found ' (Translatation from German)
can somebody help me?
|
|
|
|
|
I thought operator [] was there. In any case, you should use MyVector.at(0) because it does bounds checking for you.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Hi
I have a class Line which has 2 endpoints as members and Drawing() as method.
I just declared a CTypedPtrList of pointers to Line in document .I accessed the list in view by GetDocument() and created the instance of Line and added to list.I want to modify the values of end points so that i can draw another line with same pointer.I am able to reflect the changes in OnDraw() but I want to serialize the data which i modified.i am able to serialize the data which i have given at the time of creating the instance of the class(pointer which i am storing in list) but not the modified values.I am getting the pointer from list and modifying the
values after assigning to another pointer.to reflect the changes what i have to do?
Thanks for ur help.
bhikshapathi_g@semanticspace.com
|
|
|
|