|
vc provides one method.
build new project, select "Custom AppWizard",input new project name.ok
show "Custom AppWizard - Step 1 of 2", select "an existing Project",
next, show "Custom AppWizard - Step 2 of 2",
now notice select yourself project (*.dsp),finish.
build...
now it will bring "*.awx" and "*.pdb". then copy they to
vc install directory common\msdev98\template.
now you build new project, use "AppWizard", you find new item.
alantop
|
|
|
|
|
Terms:
Ext: Computer which to which I can connect using telnet.
Local: My personal computer.
MyApp: Application which runs on Local.
Problem:
I would like to control an application on Ext. using MyApp running on Local. One way I can think of doing this is to open a command console, CC1 on Local, and telnet into Ext. If I then redirect the input/output from MyApp (running in a second command console, CC2) to CC1, I can accomplish this task. The windows utilities GetStdHandle and WriteConsole look like they could be useful here. I am familiar with C but new to windows programming,
so I don't know if this strategy is a good approach, or perhaps there may be a much better way to accomplish this task (TCPIP server?)
Any suggestions would be appreciated.
Thanks.
|
|
|
|
|
Have you considered Remote Procedure Call (RPC)? There's also Remote Execute (REXEC).
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I did not consider RPC, and think this might be a good solution. Am studying this.
|
|
|
|
|
Good to hear people still use RPC (which is much simpler than COM!)
- It's easier to make than to correct a mistake.
|
|
|
|
|
|
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Have you tried Rent-A-Coder? That site handles work-for-hire, and might even help out with homework.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
lulu0441 wrote: do it in C++
So, just do it.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Maximilien wrote: So, just do it.
The Nike folks are going to be all over you for saying that!
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Ok, you want C++ this time?
void main()
{
Cout << "I'm trying to cheat on my homework, but am too stupid to avoid being caught.";
}
|
|
|
|
|
i am currently trying to make my program copy or move itself into my "programs to test " folder, by itself. I have been fooling around with trying ot use the shellexecute to move it but have found it easiest to use a Code to do it. My MAIN problem is that in order to make the program move itself, i need it'd current file path (i.e. c:\\Documents and Settings\\Droz\\My Documents\\Program.exe)
I have been trying to use GetFilePath, GetSystemDirectory and GetFullFilePath and still have not been able to make it work.
Breaking it down, i need the program to be able to know and be able to print out to the user its current location.
Thank you for any help. Happy programing.
- Droz -
___ ___
/\/\ /\ | |
|
|
|
|
|
I am using C code btw.
- Droz -
___ ___
/\/\ /\ | |
|
|
|
|
|
|
This is the closest form i could find. i am sure it will be very similar
Would love any suggestions on the coding;P
- Droz -
___ ___
/\/\ /\ | |
|
|
|
|
|
|
I think if you have the main function in your project, with arguments like this:
int main(int argc, char * argv[], .....)
then argv[0] points to the path of current executable.
In case of Windows applications, you can try the GetModuleFileName(NULL, .....) function.
|
|
|
|
|
Droze wrote: i am currently trying to make my program copy or move itself into my "programs to test " folder...use the shellexecute
How are you doing this?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You could use the Win32 function GetModuleFileName with a NULL module handle.
Steve
|
|
|
|
|
I'm looking for a win32 call that will allow me to restore the browser window I'm using to display help if it's minimized. I do have a handle to the main window.
|
|
|
|
|
dan neely wrote: I do have a handle to the main window.
With such, call ShowWindow() .
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks. Is there also a call that can get the current window status? SW_RESTORE behaves properly if the window was minimized or visible but unmaximized (does nothing). Unfortunately, if the window is displayed maximized it will umaximize it.
|
|
|
|
|
dan neely wrote: Is there also a call that can get the current window status?
You mean like IsIconic() or IsZoomed() ?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You have to attach your window to the thread of the current process first:
How to steal focus on 2K/XP [^]
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I'll have to take a closer look at that. I've noticed SetForegroundWindow() occasionally failing for no reason I can understand, but am not sure if it's worth the effort needed to port it to my c# app.
|
|
|
|