|
|
Shah Satish wrote: I have cstring my text; in stdafx.cpp...
Why? Stdafx.cpp is not using the variable, so why not just put it in arxmain.cpp ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
declare your variable into Confwebd.cpp as cstring my_text;
declare your variable into arxmain.cpp as extern cstring my_text;
Note: you must include Confwebd.cpp into arxmain.cpp so that compilar can locate the variable else you will get a linker error.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Yeh..I got my solution n i did same like your code..
Thanks
|
|
|
|
|
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I have just downloaded and installed VS2005 C++ Express edition and Platform SDK. I can only find a Win32 Console template, can someone tell me where can I get a Win32 Application template??. The Microsoft website shows the full edition of 2005 includes an App template but the Express edition doesn't. I have previously only used VS6 which includes lots of templates.
|
|
|
|
|
From Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK[^]...
In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application
Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the
folder
“%ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\".
In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
Save and close the file and open Visual C++ Express.
From the File menu, click New Project. In the New Project dialog box, expand the Visual C++
node in the Product Types tree and then click Win32. Click on the Win32 Console Application
template and then give your project a name and click OK. In the Win32 Application Wizard
dialog box, make sure that Windows application is selected as the Application type and the ATL
is not selected. Click the Finish button to generate the project.
As a final step, test your project by clicking the Start button in the IDE or by pressing F5.
Your Win32 application should build and run.
|
|
|
|
|
Thank you, thank you. I missed a lot of sleep last night over this.
|
|
|
|
|
I want to know the coding in Excel in Vb through which i can Hide the Formula Bar and Make the coading password protect
Born To WINNN
|
|
|
|
|
You might try asking in the VB forum
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|
|
You selected wrong forum
|
|
|
|
|
Hello,
i am searching how to create server-client side engine. Maybe someone knows any guide or tutorial where is explained with what i start etc.
regards,
reyyy
|
|
|
|
|
reyyy wrote: ...server-client side engine.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It's MMORPG engine in other words, server side includes all security, mods, rules etc, and client side, which includes user input and models.
|
|
|
|
|
You can get started by looking at older MUD/MUSH/MOO source code (search for things like AberMUD, DikuMID, etc.).
There are some open-source and/or publicly available MMORPG engines that may also include server-side code. Try typing MMORPG, MUD or SAVW into SourceForge's search engine.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> 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! See DeleteFXPFiles
|
|
|
|
|
Hello everyone,
I would like to create an application which can monitors the exchange data between DVD drivers and DVD playback software. I would like to be able to extract the informations which are available on the control panel of the DVD player so I can use these information.
My questions are:
1- Is this possible?
2- does it matter if I use Visual C#, Visual Basic, or Visual C++ or should I use a different approach?
A hint in order to get this project of the ground or pointing a tutorial is greatly appriiated.
thank you in advance for your suggestion and information.
Khoramdin
|
|
|
|
|
Hi ,
I want to read microsoft Performance counter objects details for the SQL server using C# .
I found the .dll ('sqlctr80.dll') for the same under the path:
%Programefiles%/Microsoft SQL Server\MSSQL\Binn
Now,I want to read this .dll for getting SQL server performance objects and relevant counters and instances for the particular objects.
any more assistance will be appreciated.
Thanks
pbrathod
Thanks in Advance,
pbrathod
|
|
|
|
|
Hi !!!
First of all i am sorry for deleting my question..Here still i have problem..look
In my Application,I created one dialog box..In this dialog box,I cretaed small 2 boxes.One is for list of Symbol ( text ) and second box is for preview of the drawing.
For exam:-
Box1: Box 2 ( preview )
Exchanger-Double end
Exchanger-Single end
Exchanger-Double end kettle
My requirement is,
If I will click on Exchanger-Double end ( box1) from dialog box then it will show me drawing of Exchanger-Double end ..If I will click on Exchanger-Single end
then it will show me preview of Drawing Exchanger-Single end.
My code is:-
BOOL CDwgPvDLG::OnInitDialog()
{
CDialog::OnInitDialog();
m_mytext.AddString(_T("Exchanger-Double end"));
m_mytext.AddString(_T("Exchanger-Single end"));
m_mytext.AddString(_T("Exchanger-Double end kettle"));
m_mytext.SetCurSel(0);
mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_1_i.dwg");
return TRUE;
}
void CDwgPvDLG::OnPaint()
{
CDwgPreview ::ShowInDialog (mydwg,this,IDC_PVTYP);
CPaintDC dc(this);
}
void CDwgPvDLG::OnselectionchangeList()
{
int nEntry = m_mytext.GetCurSel();
switch (nEntry)
{
case 0:
mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_1_i.dwg");
break ;
case 1:
mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_2_i.dwg");
break ;
case 2:
mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_3_i.dwg");
break;
}
}
Anybody know How can I do it ??
Thanking you..
Shah
|
|
|
|
|
See, u handle the selection event of the list, and upon notifying, draw the things in the other box.
Where the problem is?
Come online at:-
jubinc@skype
|
|
|
|
|
Shah Satish wrote: // this is class for Preview of the drawing. CDwgPreview ::ShowInDialog (mydwg,this,IDC_PVTYP);
What does this function do ?
Have considered the fact that, you need to invalidate the rectangle , before drawing to it ?
Can you be clear about your problem ?
|
|
|
|
|
Hi,
i use the BitmapPicture from Chris Maunder.
I like to add a click possibility.
A ON_WM_LBUTTONDOWN() Handler does not work.
BitmapPicture is a CStatic derived control.
How can i send a Message to the Parent, where can i catch the click?
Thanks
|
|
|
|
|
I show u the steps involved in Static control notification:-
In the dialog resource, add a Static Control. Go to the property of Static control and select Styles tab. There, Notify check box is there, check it. Then to to its events and select, BN_CLICKED.
This way, u will receive the notification from the Static Control. By default, Static Control does not send any notification to Parent.
Note:- If u want only WM_LBUTTONDOWN, then deriving a class from CStatic is not needed.
Come online at:-
jubinc@skype
|
|
|
|
|
You need to select Notify property for static control.
|
|
|
|
|
|
Did you set Notify for your control?
|
|
|
|