|
hi .....
i am not professional in programming ,this is my first real experience , so i need a help
i wanna make interface ,from it i can enter the name and number of person ,then i will pass these parameters into function to proccess them .
|
|
|
|
|
|
lallaba wrote:
i wanna make interface ,from it i can enter the name and number of person
if you looking for COM interface :-
http://www.codeproject.com/atl/SimpleATLCom.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
By interface, you mean GUI (graphical user interface) ? That is the window with the controls on it in which you can enter the data ?
If yes, I would choose a Dialog Based application when you create your project (in the wizzard for seting up your project). Then play a little bit with that, find some article on this website (or even better, buy a good book that explains how to work with MFC and class Wizzard) try it by yourself and if you have some specific questions, come back and ask. It's really too long to explain everything here.
|
|
|
|
|
Hello.,
I have two radio button , Yes and NO
and a Spin Control in a dialog based application.
My Question is .,->
When I select Yes Radio button ,I want to activate that Spin control.
In this EnableWindow() is not working.
Praveen
|
|
|
|
|
could you please post the code with which you try to do that ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
How to Print a Bitmap on a paper and print ListCtrl values on that page means company logo should print on the paper in light shade and display ListCtrl values as a report
|
|
|
|
|
http://www.programmersheaven.com/other/Latestfaqs.htm
This link may helps you.
you may get some answers regarding printing.
Haranadh
|
|
|
|
|
http://www.codeproject.com/listctrl/fexportlistview.asp
C function to export text from a ListView into a text file with separators
-By Bruno Challier
You post your question in his article.
|
|
|
|
|
Respected all
Regards!
I loaded a bitmap already ,now i have to load a bitmap which is small in size over that bitmap on a specific position so that both bitmap become visible to me.
plz guide me.
from
david
|
|
|
|
|
Friends,
In my dll or exe, i want to place certain file in the resource (file can be HTML file or text file or any image). Later at run time i want to retrieve that file from the resource and manipulate it.
Please tell me how can i store file in resource and then retrieve it from the resource.
Imtiaz
|
|
|
|
|
Imtiaz Murtaza wrote:
Please tell me how can i store file in resource and then retrieve it from the resource.
this article will help
http://www.codeproject.com/cpp/UpdateResource.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I'm using a worker thread in order to load images and manipulate them in the background. But I have a problem shutting the thread down during execution.
As I am using a library which does most of the work for me (DevIL image lib) I cannot poll for a running state. Loading a big image may require a couple of seconds!
How should I deal with this problem?
|
|
|
|
|
If you can always eventually kill it when it returns from one of the library routines, you could always put up a "Shutting down..." type of banner just to let users know that the program isn't hung.
Bob Ciora
|
|
|
|
|
Hello,
You should use flags to shut the thread down. You could use the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/terminatethread.asp" rel="nofollow">TerminateThread()</a>[<a target=_blank title='New Window' rel='nofollow' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/terminatethread.asp">^</a>] or <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__endthread.2c_._endthreadex.asp" rel="nofollow">endthread()</a>[<a target=_blank title='New Window' rel='nofollow' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__endthread.2c_._endthreadex.asp">^</a>] routines, but these are not safe!
See this[^] article for more information on this 'right' way to stop worker threads.
Hope this helps
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I have been giving the task of creating a replacement for a small console program supplied by a customer.
The program is a single .EXE that takes a 8.3 filename as it's parameter and outputs results (searching for labels in a binary file) to the constole.
As it's been very well optimised can anyone suggested how I could write a simple wrapper to build the old executable inside another (my boss wants a single .EXE file to distribute) so i can take the long filename and simply pass the short filename to the original .EXE.
The alternative is to spend a lot of time optimising the search in my code to get it as fast as the existing code.
Thanks.
Elaine
The tigress is here
|
|
|
|
|
you can try the following code to the a message function.
{
PROCESS_INFORMATION pi;
STARTUPINFO si;
memset(&si,0,sizeof(si));
si.cb=sizeof(si);
si.wShowWindow=SW_SHOW;
si.dwFlags=STARTF_USESHOWWINDOW;
BOOL fRet=CreateProcess(NULL,
"c:\\windows\\notepad.exe c:\\autoexec.bat",
//the notepad.exe can be repalced to other .exe NULL,
NULL,
FALSE,
NORMAL_PRIORITY_CLASS|CREATE_NEW_CONSOLE,
NULL,
NULL,
&si,
&pi);
if(!fRet)
{
LPVOID lpMsgBuf;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL );
AfxMessageBox( (LPCTSTR)lpMsgBuf);
LocalFree( lpMsgBuf );
}
else
{
AfxMessageBox("CreateProcess susceesfully");
m_hPro=pi.hProcess;
}
|
|
|
|
|
(i'm not sure) import your Original exe as a Resource in your projet.. then download it from your New Exe to disk.. and shellExectue it..(its not visible to the user).. i hope i get u right.. i've done this in VB long before. i'm not sure with VC..
Regards,
V
|
|
|
|
|
|
Trollslayer wrote:
Thanks, thats the kind of solution I was after.
and this example will help you in that :-
http://www.codeproject.com/cpp/UpdateResource.asp[^]
Trollslayer wrote:
The tigress is here
Runnnnnnnnnnnnnnnnnn........................ kidding hope you don't mind
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 7:33 Wednesday 31st August, 2005
|
|
|
|
|
|
ThatsAlok wrote:
The tigress is here
Runnnnnnnnnnnnnnnnnn........................
you wont run.. if u had actually seen the tigress' photo in her profile!!.. i'm gonna present her to your kid for his next b'day ..
LOL
V
|
|
|
|
|
Vivekuniq wrote:
...if u had actually seen the tigress' photo in her profile!!
very frightenning !!!! uhhh:->
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Vivekuniq wrote:
'm gonna present her to your kid for his next b'day ..
Kiddssssssssss..............whoes
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
hey alok cool.. man.. i know you are Geniune bachelor.. i just said for fun.. K.. lets keep this way.. "lets give it as a gift to Tox's kid!!!".. i hope Tox is married!
V
|
|
|
|