|
hiho@ll
i'm using Visual Studio .Net
1. i have compiled/runned/debugged many "self-made" projects and some projects from codeproject.com
2. i got the source of a programm which i want to debug, which seems to be programmed using visual studio 6.0
3. if i try to debug the prog i get the following error:
"
Unable to start debugging.
Unable to start program "c:\program files\internet explorer\iexplore.exe"
Das System kann die angegebene Datei nicht finden.
"
4. it seems that .net tries to debug using iexplore.exe in program files folder
but my iexplore.exe is in programme\Internet Explorer\...
question: how can i change the debug options for this project that .Net knows that iexplore.exe is not in program files\ but in programme\ folder?
thx@ll
|
|
|
|
|
Hi,
I have a project built on winsock2, it listens to a particular port and responds to client requests. Its a customized Server for our needs.
I got to port it to DLL and invoke this in VB. How do I do this?
Any suggestions?
thanks in advance.
Hemo
|
|
|
|
|
|
Respecte All
Regards!
I am a new one to VC++ and learning phase.
I haev a problem
" i loaded a bitmap on a bialogbox but when i minimiz the Runtime window and then when i maximize the Runtime window then the Bitmap is not here on the runtime window.
I dont understand what's the problem.
Kindly guide me.
Bset Wishes
David
david
|
|
|
|
|
Where did you paint the bitmap onto the dialog ? You need to do it in either OnEraseBackground, or OnPaint.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks Sir
I am loading Bit Map directly on Dialog and that's why I think problem are coming
"but how i do it on OnPaint?"
Best wishes
David
david
|
|
|
|
|
Load the Bitmap into a Bitmap as a member variable in the class, override the OnPaint method of the class, and draw it there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi All,
I have developed an MFC application with 2 views & a dialog window,all of which are dockable.So it looks more like when we open our microsoft Vc++ application.
The messaging system was taken care by a collegue of mine,who used "RunModalLoop" function for handling windows messages. Thats why this post.
My dialog window contains a Grid control.When I make a change in one of the cells in the grid & go & hit any of the toolbar buttons or menu items,the after edit event of the grid is not getting called. when I click on any of the views,the afteredit event is getting called,which is what I need.
What could be reason that the "AfterEdit" event is not getting called(when Hit on toolbar buttons & Menu Items).Does this has anything to do with "ModalLoop" calls.
Thanks for any help...
|
|
|
|
|
Hi,
My GUI is required to call a code that is a console application. The progress is displayed in the console. My GUI button calls this code fine and data is written correctly. The problem is I don't see the console from the button call and the user has no idea when the routine has completed. Would this be something to do with CreateProcess()? I know that this function can be used to call applications but what about subroutines?
Thanks.
Kash
|
|
|
|
|
Using CreateProcess() is the correct method. However, I would make the console window hidden, and capture the text that is written to it in my GUI window. See here and here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I would like to toggle sound in my program via a Menu item.
I have included a Menu option and event as follows, but how can I either set the Menu text 'checked' or change it to read:
Sound On or Sound Off .
void CExampleDlg::OnSystemSound()
{
if(g_bSound)
{
g_bSound = false;
SetDlgItemText(ID_SYSTEM_SOUND, "Sound Off");
}
else
{
g_bSound = true;
SetDlgItemText(ID_SYSTEM_SOUND, "Sound On");
}
}
Where ID_SYSTEM_SOUND is the Menu item. Can you declare a member variable for this Menu item? I saw no options in the Class Wizard.
But the Menu always displays the default text (Sound On); i.e. never changes.
|
|
|
|
|
I believe you need to call CWnd::GetMenu(...) which returns a CMenu* . Check out the member functions in that class.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Check this[^] article on menu.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Thanks for your post. Will read the article.
Got code working:-
if(g_bSound)
{
g_bSound = false;
CheckMenuItem(m_MyMenu, ID_SYSTEM_SOUND, MF_UNCHECKED);
}
else
{
g_bSound = true;
CheckMenuItem(m_MyMenu, ID_SYSTEM_SOUND, MF_CHECKED);
}
|
|
|
|
|
i wrote this code about the Matrix project here is a part of the code to input the matrix or a vector with a dynamic allocation:
double*vector ; int num ;
cout<<"enter the size of the vector"<<\n;
cin>>num;
vector=new double[num];
for(i=0;i<num;i++)
{
cout<<"enter="" the="" element"<<i+1<<"in="" vector"<<\n;
="" cin="">>*(vector+i)
}
this for input the vector but for input the matrix i made it in another function:
double*grade ; double**matrix ; int row ; int col;
cout<<"enter the number of rows then coloumns in the matrix"<<\n;
cin>>row>>col;
double**matrix=new double*[row];
for(int j=0;j<row;j++)
{
matrix[j]="new" double[col]
="" for(int="" k="0;" k<row;="" k++)
{
="" for(="" int="" l="0;" l<col;="" l++)
{=""
="" cout<<"enter="" the="" element"<<l+1<<"in="" row"<<k+1<<\n;
="" cin="">>*(grade[k]+l)
}}}
iwant to ask of there is any missing in the followin part of the code
second if i want the program to ask the user if he wants to input one or more matrix can i add this :
for(int c=o;c<n;c++) where="" n="" is="" the="" number="" of="" matrices="" user="" want="" to="" input="" i="" put="" all="" previuos="" for="" loops="" in="" this="" loop="" but="" withmall="" change="" as="" folows
in="" stead="" writing="" matrix[j]i="" will="" write
matrix[c][j]="new" double[col]
&="" instead="" cin="">>*(grade[k]+l) i will write
cin>>*(grade[c][k]+l)
so may you answer these previous questions?
|
|
|
|
|
Use code tag to format the code,
It is difficult to differentiate between your code and comments!
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
sorry but i dont understand u what do u mean with code tag
do u mean #include<iostream.h>
do u mean something like this
i dont understand what u want sorry
dont u understand my questions?
|
|
|
|
|
When you are showing code in your post, use pre tag which you can find above those smileys. That will make your code to appear in paragraphs instead of them hugging to the left as it was with your post.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
He means you should format the messages you post for a better readability. By using for instance this format for code extracts or that format to highlight important words. If you don't take care to the format of your message, people will have difficulties to read it or to understand your code, and will simply not answer to the question
|
|
|
|
|
Hi Friends,
I am developing simulator for 8085 microprocessor using C, C++ language. Is there any examples, links, materials or books available to help ?
Waiting for positive reply
Regards,
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Try this[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
|
Hi,
I want to create an xml file. I am using MSXML2::IXMLDOMDocument::save() method to do so. Using the sample examples giving on net, but all are giving errors.
I am successfully able to parse an xml document, but save a new xml file always give error. And creates blank xml file.
Can anybody suggest me a sample program to save xml file.
I am using MSXML3/MSXML4 DLLs.
Thanks in advance.
|
|
|
|
|
IXMLDOMDocument expose .xml BSTR variable which contain whole xml file of interface, and by using standered FILE operation you can save it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Thanks Alok. I will se it. If you have any sample code program, do send it to me.
|
|
|
|