|
If szText is a TCHAR , the correct syntax would be:
fprintf( fichero, "%c\n", szText);
I assume, however, that you meant that szText was a TCHAR* . Correct? If so, your fprintf() statement is correct.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Thank you, now it's OK
The real definition was:
TCHAR szText[256] = { _T('\0') };
|
|
|
|
|
Hi!
I've built a dialog window in Visual C++ 6 with some edit boxes and buttons and I'd want these edit boxes to show some default texts. In main window I call this dialog window just clicking a button and I know I can get the information written in these edit boxes here in main code, but I don't know how could I show something in them when I click the button in main window, before than I could write anything myself. I think I have to use UpdateData but I haven't OnInitDialog() as in main code so I don't know where should I write it.
In my own dialog window I only have some code that works when I click a button there.
Any idea?
Thank you in advance!
|
|
|
|
|
map some dialog class member variables to the edit controls in ur dialog box ... in ur main code that shows the dialog box do something like this:
CMyDialog myDialog;
myDialog.myVar1 = "hello world";
myDialog.myVar2 = "hello world again";
myDialog.DoModal();
etc etc
"there is no spoon" biz stuff about me
|
|
|
|
|
Yeah! It works now, thank you
|
|
|
|
|
Is Microsoft® Visual C++™ .NET Standard 2003 The same as Visual c++
|
|
|
|
|
.NET means that you can make .Net programs with it.
Standard specifies what kind of package you get
(better packages have more extra's and tools, I think)
2003 is the edition (or closely, the version) of the tool.
So in short, yes.
|
|
|
|
|
Simply based on what you've provided, I'd say no. Both of them are Visual C++, but you've qualified one with .NET Standard 2003, whereas the other has none.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Can i program 3d Games With C++. and simulation games. Such as "The Sims" With Visual C++
Also does a compler come with visual C++
Thank You
|
|
|
|
|
First of all restate your question? second if you do want to create games, you would have to learn something like directx or opengl programming, I myself started this a couple of months ago, started learning directx. If you just wanted to find out if YOU could then creating a game like the sims would take you.... including about a 100 people...couple of years, with full knowledge of DX or OGL. But yes you could create it lol.
Actual Linux Penguins were harmed in the creation of this message.
|
|
|
|
|
You can program games with c++, but you would need a 3d
library (and knowledge about it, this is the hardest part)
as well.
OpenGL and DirectX are both good tools.
(DirectX is a whole family of libraries, where one of them
is 3D.)
Try looking up a bit on both, and choose one you like.
(Though most games today uses DirectX)
http://www.opengl.org/
http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000410
|
|
|
|
|
Yes, Visual C++ with direct X is probably the best platform on a windows box to do that. However, if you expect to do anything similar to the current games on the market I would say don't hold your breath, current games are programmed by teams of 20 or more and take over a year for a single game... And they reuse old code, graphics, sound and other things from past games that they have written...
John
|
|
|
|
|
Can i program 3d Games With C++. and simulation games. Such as "The Sims"
Thank You
|
|
|
|
|
Definitely.
Happy Programming!
WWW::CodeProject::BNEACETP
|
|
|
|
|
Help: F5 doesn't compile anymore, even if I changed the sourcecode!
The changes are saved, but Visual Studio .NET 2003 simply starts debugging the unchanged version of my code!
Everytime I have to press F7 (to build the new version) prior to F5 (to debug the new version)!
I am totally unsure if I changed anything (I really cannot think of it), so if there is an option to get back the "standard" behaviour (rebuild if changes in code), then please, anyone help me and direct me towards it...
It DID rebuild on F5 after changing code for a while, it just stopped doing so recently...
Help!
|
|
|
|
|
I don't know if there are other things that may cause this,
but try to see if this setting is ok:
From the build menu select Configuration manager.
When you select debug (and release) in the drop down box,
make sure the box "build" is checked.
sp+
|
|
|
|
|
Yup, every "build" checkbox is checked!
Thanks for trying to help....
|
|
|
|
|
Are you sure that you are chaingin the correct source code?
Are your dates/times correct on your pc and did you change it recently?
Did you try to delete the release and debug folders and do a clean build?
John
|
|
|
|
|
Yeah, there is only one source-file in the project/solution.
Date/Time is correct (just checked it).
I'll try to delete the Debug/Release-folders and try to "build from scratch".
I'lll let you know if it helped...
/EDIT:
No, doesn't help.
Funny thing is: After deleting Debug/Release Folders and pressing F5, I get an ERROR-MESSAGE tellig me it cannot find the desired EXE to debug!!!
Screenshot (German Version):
See Screenshot of Error here...[^]
Damn, there MUST be an option to control this behaviour... it worked for months before...
|
|
|
|
|
I got it!
I was playing around with the Demo of the Intel CPP Compiler, and somehow I must have managed to set it's options to "ignore code changes" or whatever...
I uninstalled it and it works again like before!
Thanks for all who tried to help me!
|
|
|
|
|
Your welcome... I have sort of the opposite problem... When I do remote debugging and press the F5 key (on the remote system while remotely debugging the systems that compiles the application) a lot of the time it wants to recompile but I know everything is up to date... I think this is caused by the clocks of the computers not being synchronized...
John
|
|
|
|
|
I can add buttons and checkboxes to my form using the BS_xxxx Command, but how do I add a scroll box or drop box?
James Meade
vLT(jg) vUSN
vOPSOFF VAQ-140
|
|
|
|
|
Hello,
windows style WS_VSCROLL Creates a window that has a vertical scroll bar.
windows style WS_HSCROLL Creates a window that has a horizontal scroll bar.
With Regards,
R.Selvam
|
|
|
|
|
Greetings,
I was wondering how do I programmatically create a virtual folder under Inetpub?
I am trying to create a folder through code with various security methods, and
I am not sure how to do this outside of the IIS manager. I need to do this through
code.
Thanks in advance for any help.
|
|
|
|
|
Help... yes I have scanned the different forums for help on the subject have not found a complete answer, hopefully i'll get some here..
Anyways, I am writing a MFC application VC6 and my problem is that I want to be able to download files from an internet location, preferably using http protocol so that ftp server is not needed.
I have seen solutions where you can download a file with a given name, my problem is that i dont know the name of the files to be downloaded, consequently i need to make "dir" search or similar and the download each of them. If possible I would like to chect last update date for each file before downloading (checking if they have changed, so download is only performed if change has been made).
I also want to be able to upload files to the same directory (of course permissions have to be set on the server side to be able to do this. Is it possible to do this with http.
the files are xml coded files.
So do anyone know about an article in this subject, or could point me in some direction i would be most grateful.
/pm
|
|
|
|