|
Could i plot signal in the dialog box? Or it's more difficult to do it?
I wan to choose mfc AppWizard(exe).i wan to display button and boxes on the gui.What type of application is suitable to create ? sdi, mdi or dialog ?
Thx a lot for ur help. take care all.
|
|
|
|
|
every type of application can be content what you want,but more important is that you should write a derived class from CButton(for example),and override some virtual methods and message-functions.
reference to articles here meybe give you a hand
路漫漫其修远兮,吾将上下而求索。
|
|
|
|
|
when writting about "plot signal" do you mean drawing a graph of a signal, like an analogic signal ?
if so, have a look hhere[^] , there are examples on how to create graphs and plot.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
meiyueh wrote:
Could i plot signal in the dialog box?
Yes!
meiyueh wrote:
Or it's more difficult to do it?
No!
OK, that was simple, but you lost me. You need to rethink your question. It looks like you need a dialog based application.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
hi,
i want to create an ISAPI extension which would enable me send a page with an image to a browser. there would be options for the user to select a particular image give on a web page and when the user clicks the get button the image should be displayed. i found a sample project here on codeproject given by Jorge Lodos. but i am not able to display the images. i changed the location of the files as specified in the tutorial but only the text is being displayed. can anyone help. also in the html page supplied with the sample code contains a %s in the image src field. can anyone explain what is that. the html code is as follows.
<head>
</head>
<body>
Test Image
<img align=left src="%s">
A car
</body>
and the link for the sample project is : http://www.codeproject.com/isapi/image.asp
thanks
aditya
|
|
|
|
|
I have a Fortran program related to figure plotting. Right now, I created a interface by Visual C++. Is there anyone who knows how to access Fortran program through the interface programmed by Visual C++?
|
|
|
|
|
Their is probably someone who can answer this question, but it is not me.
Rethink the question and give a little bit more imformation.
1) What Fortran compiler (or version) are you using (very improtant).
Blast! I could only think of one. But that one is important!
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
DawnLee wrote:
Is there anyone who knows how to access Fortran program through the interface programmed by Visual C++?
Define "access." Does Fortran support COM?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi
I need to display a dialog showing a message to the user and distroy it after a specific timeout.
How can i do this?
I'm familiar with threads but in other languages so just a piece of code would be very helpful...
Thanks a lot
Mamtz
|
|
|
|
|
try this :
SetTimer(..) and
OnTimer(..)
{
if(timeout)
close dialog
KillTimer(..)
}
路漫漫其修远兮,吾将上下而求索。
|
|
|
|
|
Use EndDialog(TRUE) when timeout
|
|
|
|
|
|
Hi, all
I was trying to run an application cross network, and got this message "runtime error, program g:\...\cd.exe abnormal program termination" from c++ runtime library. but I was able to run it from another 2000 machine cross network on the same data. and could run the other exe on the same folder from my machine, too.
it just doesn't make sense why only this one won't work........anybody has idea?
thanks and have a good weekend!
|
|
|
|
|
that means the application has some bugs which are exposed in one machine and not the other.
remmeber the famous quote - "it works in my machine".
Saurabh
|
|
|
|
|
Oh, how I wish I could disagree, but you are absolutely right.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Can someone tell me how to access the 'ProductVersion" from VS_VERSION_INFO in the resource file.
I want to set the version number when I compile and use in a MessageBox from within my program
Thanks
|
|
|
|
|
BOOL CString::LoadString( UINT nID );
throw( CMemoryException );
Return Value
Nonzero if resource load was successful; otherwise 0.
Parameters
nID
A Windows string resource ID.
Reads a Windows string resource, identified by nID, into an existing CString object.
The following example demonstrates the use of CString::LoadString.
<br />
#define IDS_FILENOTFOUND 1<br />
CString s;<br />
if (! s.LoadString( IDS_FILENOTFOUND ))<br />
{<br />
AfxMessageBox("Error Loading String: IDS_FILENOTFOUND");<br />
...<br />
}<br />
路漫漫其修远兮,吾将上下而求索。
|
|
|
|
|
There are a number of articles here on CP.
Just do a search on 'version'.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
cgb143 wrote:
Can someone tell me how to access the 'ProductVersion" from VS_VERSION_INFO in the resource file.
Use [GetVersionInfo] api or try out this wrapper class:-
www.codeproject.com/file/VersionInfo.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 am trying to write a function that will take a string (read from a whole line) as input. Then for each phrase found in the line, it will add it to a vector. Finally, we return the number of phrases we found. The way that phrases are delimited are with the tab character. The below almost works, but I am finding that it is delimiting on any whitespace. Is there some easy way to tell the istringstream >> operator to only use tabs?
int setcol(const std::string& input_record, std::vector<std::string>& colv)
{
std::istringstream s(input_record);
std::string temp;
colv.clear();
while (s >> temp)
{
colv.push_back(temp);
}
return colv.size();
}
--
Marcus Kwok
|
|
|
|
|
I got it by brute force, but I am hoping someone has a more elegant way to do this.
int setcol(const std::string& input_record, std::vector<std::string>& colv)
{
std::string temp;
colv.clear();
typedef std::string::const_iterator CI;
for (CI ci = input_record.begin(); ci != input_record.end(); ++ci)
{
if (*ci != '\t')
{
temp += *ci;
}
else
{
colv.push_back(temp);
temp.erase();
}
}
colv.push_back(temp);
return colv.size();
}
--
Marcus Kwok
|
|
|
|
|
|
Greetings All,
This might be a rather simple question,
I understand how Reverse works in gDI+ but i dont see a good application of this method, Is it possible to create a test that would use this method and display visual differences on whether method was used or not?
Sincerely,
Max Pastchenko
|
|
|
|
|
Hello!
May I use Windows XP icons in my application? I searched the Microsoft website, but couldn't find anything related to licensing their icons... Or are they free to use for anyone? I don't need them as application icon, I need them for some lists and toolbars...
Best regards
|
|
|
|
|
you has better alter the icon not fully the same as M$
or you may be some day charged with....
路漫漫其修远兮,吾将上下而求索。
|
|
|
|