|
|
you could have changed your screen name right? why you created a new account? that means your message
count'd start again from 0.
0x0400:
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
hehe, no probs. I had an invalid email id associated with that screen name.
Vipin - MVP
|
|
|
|
|
VivekuniQ wrote: you were vipinasda right?
I believe you right!.. a suggestion if you don't mind please don''t make this forum lounge.. please..
"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
|
|
|
|
|
do you think i should take him to lounge to say this? or you felt something about the dialogs i had with toxcct? anyway i'd try talking less in general.
0x0400:
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: do you think i should take him to lounge to say this?
sorry for hurting you!.... no probs people like you here !
"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
|
|
|
|
|
RainbowWyrm:
Thanks! I'll look them up on Sears next time I go!
some good practice like if(x==NULL) can be coded as if(NULL == x).
You mean that the second way is better? Why?
quite a lot of code replication. Refactor or Redesign.
You mean the movement functions? You know of a shorter way? TELL ME! I've been looking for that for ages!
Create a Dispatcher routine for class and do the forwarding for<br />
keyboard events to appropriate routines each of them handling one type of event.
For the game and map maker? Oops... I didn't know you could do events in non-dialog apps... How?
_T_H_A_N_K_S_ you all!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
Hello everyone!
I just want to know how to do OpenGL with MinGW/GCC... I don't want to use VC++ for this, because I want to be portable... But how do I open a window in std C++, and how to I get rid of these errors?:
C:\>g++ Lesson1.cpp<br />
Lesson1.cpp:12:60: gl\glaux.h: No such file or directory<br />
<br />
C:\>g++ Lesson1.cpp<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x31):Lesson1.cpp: undefined<br />
reference to `glViewport@16'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x40):Lesson1.cpp: undefined<br />
reference to `glMatrixMode@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x48):Lesson1.cpp: undefined<br />
reference to `glLoadIdentity@0'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x76):Lesson1.cpp: undefined<br />
reference to `gluPerspective@32'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x85):Lesson1.cpp: undefined<br />
reference to `glMatrixMode@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x8d):Lesson1.cpp: undefined<br />
reference to `glLoadIdentity@0'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0xa2):Lesson1.cpp: undefined<br />
reference to `glShadeModel@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0xcd):Lesson1.cpp: undefined<br />
reference to `glClearColor@16'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0xda):Lesson1.cpp: undefined<br />
reference to `glClearDepth@8'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0xe9):Lesson1.cpp: undefined<br />
reference to `glEnable@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0xf8):Lesson1.cpp: undefined<br />
reference to `glDepthFunc@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x10f):Lesson1.cpp: undefine<br />
d reference to `glHint@8'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x12c):Lesson1.cpp: undefine<br />
d reference to `glClear@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x134):Lesson1.cpp: undefine<br />
d reference to `glLoadIdentity@0'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x192):Lesson1.cpp: undefine<br />
d reference to `wglMakeCurrent@8'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x1cd):Lesson1.cpp: undefine<br />
d reference to `wglDeleteContext@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x672):Lesson1.cpp: undefine<br />
d reference to `ChoosePixelFormat@8'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x6d6):Lesson1.cpp: undefine<br />
d reference to `SetPixelFormat@12'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x725):Lesson1.cpp: undefine<br />
d reference to `wglCreateContext@4'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0x787):Lesson1.cpp: undefine<br />
d reference to `wglMakeCurrent@8'<br />
C:\DOCUME~1\DARTH_~1\LOCALS~1\Temp/ccEXbaaa.o(.text+0xabd):Lesson1.cpp: undefine<br />
d reference to `SwapBuffers@4'<br />
collect2: ld returned 1 exit status<br />
<br />
C:\>
Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
There is no such thing as a window in C++. Instead, each platform has it's own windowing library. You can move away from MFC and use Win32, which is a lot more work. You could also try TCM/TK ( I think that's what it's called ) or some other cross platform windowing library.
Have you seen the NeHe site ? He has OpenGL samples in just about every possible configuration, for most platforms.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
If you use Dev-C++, you might want to check out the AllegroGL[^] devpak. It adds OpenGL routines to the Allegro game/graphics framework.
Alternatively, you could download the SDL[^] devpak. It has some very simple bindings to OpenGL that ease the creation of windows in which to use OpenGL.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
Hi,
How can I register my application in a way that once someone right click on any file in the windows explorer he will see an entry in the popup menu to run my program on this file.
For example, if you install WinZip and right click on any file, the popup menu will show you you can run WinZip for this file.
thanks in advance,
Shay
|
|
|
|
|
|
Does anyone have a suggestion on where to look to explain why a dialog ends up modeless when it is invokes by actually calling DoModal. This is the first time this has ever happened to me. It uses a layout manager from this site, but other dialogs in the same project that are called in the same way remain modal. Only this one seems to change.
Happy programming!!
|
|
|
|
|
|
I have created a Deployment Program to set up a VS.net GUI application on a users machine. I think I need to perform a custom action to register an Active X Control on the users system as part of the Deployment Project. Basically an OCX is loaded on the users machine and registered.
To register I need to perform:
regsvr32 name.ocx. Does anyone know how to register an OCX as part of a deployment and setup program?
Jerry
|
|
|
|
|
Just add the OCX file to the Application folder, like any other file. That's it.
Pls let me know your status.
Sarvan AL
|
|
|
|
|
Does anybody have sample of converting text file to xml?
Thank you.
sun
|
|
|
|
|
Is your text file xml formatted or no?
|
|
|
|
|
if he wants to convert it to xml, I would assume it's not "xml formatted" ( whatever that means ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
there are usually no "pre-defined" ways to do this ( as far as i know ), it always depend on the input.
You need to parse the text file and extract what will be tags ( do you have something like that in your file ? ) and what will be the data.
How is your text file formatted ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
acutally it is PLC code
<br />
FUNCTION_BLOCK SR_IL (* SR flipflop in instruction *)<br />
VAR_INPUT<br />
S1 : BOOL; (* dominant set-input *)<br />
R : BOOL; (* none dominant reset-input *)<br />
END_VAR<br />
VAR_OUTPUT<br />
Q1 : BOOL; (* output *)<br />
END_VAR<br />
<br />
LD S1<br />
OR R<br />
RETCN (* return if both FALSE *)<br />
(* and do not assign a value to Q1 *)<br />
<br />
LD S1 (* no need to use R *)<br />
ST Q1<br />
<br />
END_FUNCTION_BLOCK<br />
I'm trying to convert it to xml format, I just need any text to xml conversion sample for general idea.
Thank you.
sun
|
|
|
|
|
If the file was XML based XSLT would be the answer. Since your file is not XML based you'll have to write your own parser (or find someone elses). If I was doing it I would use Spirit (from Boost) to do the parsing - especially if you have access to the BNF of the source format. Good luck.
Steve
|
|
|
|
|
HI ,
You can open any xml file in the text mode see the tag representation and then open your file in append mode and move in and place those tag there ,only the header needs to be fixed all the other tag can be any format(of your name) ,this is the raw way of converting it into xml format.
For example to add the header i will do something like this :-
<code>int CXmlWrite::AddHeader(CString& sHeader )
{
CString sAddHeader,sAddHeader1;
m_sHeader = sHeader;//store it needed for closing
sAddHeader.Format("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
m_fXmlWrite<<sAddHeader<<endl;
sAddHeader1.Format ("<%s>",sHeader);
m_fXmlWrite<<sAddHeader1<<endl;
return 1; // the count of numbers addedas header
}</code>
// this you need to place above between the inverted commas
//"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"
Hope it solves your problem
Regards
FarPointer.
-- modified at 10:16 Thursday 12th January, 2006
|
|
|
|