|
I'm really not at all sure what you're asking but if you need to call an external executable have a look at the documentation for ShellExecute. This link[^] might help.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
sunny.rana wrote: ...i need to call an external exe
Do you need this?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
While we're guessing at what you're asking (acquisition code ) - I'm going to guess you mean during the build process. I which case, there are boxes for things to do pre- and post-build in the project properties.
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
hey i am new to VS 2008 and i was trying a simple pointer prgogram and to my dismay i couldnt build it,
#include <stdio.h>
int *pPointer;
void SomeFunction()
{
pPointer = new int;
*pPointer = 25;
}
void main()
{
SomeFunction();
printf("Value of *pPointer: %d\n", *pPointer);
}
the error i got was as follows:
------ Build started: Project: Testin, Configuration: Debug Win32 ------
Embedding manifest...
mt.exe : general error c10100b1: Failed to load file "..\Debug\Testin.exe". The system cannot find the path specified.
Build log was saved at "file://c:\Documents and Settings\Ravi\My Documents\Visual Studio 2008\Projects\Testin\Testin\Debug\BuildLog.htm"
Testin - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </stdio.h>
i tried the google way and ended up here:<a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=109735&wa=wsignin1.0">https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=109735&wa=wsignin1.0</a>[<a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=109735&wa=wsignin1.0" target="_blank" title="New Window">^</a>]
which says they are looking over the matter so i am stuck with no clue ...
Thanks in Advance!
modified on Wednesday, February 06, 2008 12:03:16 PM
<div class="ForumMod">modified on Wednesday, February 06, 2008 12:07:23 PM</div>
|
|
|
|
|
1/ read the posting guidelines - it tells you about using the PRE tabs so we can see all your code - some of it is missing now, and it *might* be important.
2/ Try a full rebuild?
3/ Have a look through the project settings - maybe you should change a "..\Debug" to a "Debug" somewhere.
Good luck,
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
At a guess I'd say you've got invalid default project setting for the kind of project ( old standard C style Console App ) that you're trying to create.
First up check whether the compiler actually managed to build your exe, does the Debug build of Testin.exe actually exist anywhere. Then check if it runs outside VS 2008, ie double click on it and see if VS2008 built a bad exe. If all this works fine then it's just the Debugging settings of your project that aren't right, the IDE is looking for it in the wrong place I reckon.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I want to use windows InternetOpen() function call. In the documentation it is mentioned as it can be used in "OS Versions: Windows CE 2.0 and later". But i came to know after some search as, it possible to use this function call in windows XP. I have included "Wininet.h" header file also to use this function call. when i compile the program it throws error as "error LNK2001: unresolved external symbol __imp__InternetOpenW@20". Help me to get rid of this issue.
- vp
|
|
|
|
|
You probably forgot to link to "Wininet.lib" as it is stated in the documentation[^].
|
|
|
|
|
Click here[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Yes. i get rid of that issue.
Thanks a lot to all of you.
|
|
|
|
|
Hi people,
I've got an If statement in my code that needs to check the last element of a list. Like follows:
if (Remainder == 1 && TesterIterator != Mersenne.end())
This doesn't work the way I would like because the .end() command takes you to one element past the end of the list :'(. I would like to construct an if statement that would like to go to the last element minus one. This is one that I tried but it didn't work
if (Remainder == 1 && TesterIterator != (Mersenne.end()--))
Does anyone have any ideas? I am very appreciative for all your help in advance.
Michael
|
|
|
|
|
Hi,
try like this.
if (Remainder == 1 && TesterIterator != (Mersenne.end()-1))
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
|
hello everyone,
i need help to fix these errors..when i tried to fix it im getting more errors..please help me.
#ifndef _Convert_h
#define _Convert_h
Waveform SignalToWaveform(const Signal& s);
Signal WaveformToSignal(const Waveform& w);
ComplexWaveform WaveformToComplexWaveform(const Waveform& w);
Waveform ComplexWaveformMagToWaveform(const ComplexWaveform& c);
Waveform ComplexWaveformRealToWaveform(const ComplexWaveform& c);
#endif
3.cpp
c:\vc98\include\convert.h(4) : error C2143: syntax error : missing ',' before '&'
c:\vc98\include\convert.h(4) : error C2059: syntax error : '&'
c:\vc98\include\convert.h(5) : error C2146: syntax error : missing ';' before identifier 'WaveformToSignal'
c:\vc98\include\convert.h(5) : error C2501: 'Signal' : missing storage-class or type specifiers
c:\vc98\include\convert.h(5) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
3.exe - 5 error(s), 0 warning(s)
|
|
|
|
|
Signal datatype is not declared with in this scope
|
|
|
|
|
so what shall i do now sir?im kind of blur.
|
|
|
|
|
STEP1: find the declaration of Signal,
STEP2: if found in some header file
STEP3: THEN include it.
STEP4: ELSE ....
I think u need to be familiar with basic concepts. learn C, C++ well.
Ok. could u able to find the declaration of Signal anywhere in source base.
|
|
|
|
|
thank you sir.now i can run the code.
|
|
|
|
|
I wud lik to call dialog2 from dialog1 using Icons..
but thr s no direct way to click icons in a direct hit
without some additional fuctionality call to someother
dialogs r' controls like buttons..
For Ex: If i ve an icon for Back/Forward/Home icons
in my dialog1, an while clicking the same,
the corresponding operations must be performed
similar to the operations of buttons .
suggestions required..
Gita
|
|
|
|
|
What do you want to do?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi Rajesh,
I m a beginner in VC++(MFC/SDI) and designing a project rite nw..
Instead of buttons, i m usin Icons for GUI flow..
I dont know how to call a dialog from someother dialog by
clicking the icons directly instead of usin buttons..
How to write a fn / a snippet to call something usin Icons...
still ambiguous???
Gita
|
|
|
|
|
Have you tried using CBitmapButton ?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Try CBitmapButton, where u have to load 4 images of your own choice(they can be icon images).
Anandi
|
|
|
|
|
Gita.Bairavi wrote: suggestions required..
For each button, create an handler (ON_BN_CLICKED) and do what is to be done in those handlers.
if it's calling a dialog, create the dialog and do a DoModal (or Create/ShowWindow for modeless).
if it's something else, just do it.
|
|
|
|
|
i installed VC 6.0 on Windows 2k system.i work on VC++.
when i try to build a new project , i am getting the following error :
.....................................................
Compiling resources...
E:\SSS2\SSS.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
Error executing rc.exe.
SSS.exe - 1 error(s), 0 warning(s)
.......................................................
And when i try to build an existing project , i am getting the following error :
.......................................................
Creating Type Library...
Error spawning midl.exe
EventProject.exe - 1 error(s), 0 warning(s)
.......................................................
could anyone please help me out solving these errors ?
Thanks in advance !
Anandi
|
|
|
|