|
How To Make the new DBase database(new DBase file)??? Where to read about this???
|
|
|
|
|
Are you wanting to create a new DBase file (.dbf extension) programmatically?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Yes, that's exactly what i want .
And additional information about it.
|
|
|
|
|
How would you create the database/table(s) manually? Whatever the commands are, you should be able to do the same thing with the CDatabase::ExecuteSQL() method.
ExecuteSQL("CREATE DATABASE MyDb");
ExecuteSQL("CREATE TABLE table1 (Name TEXT(15), Address TEXT(25), Age INTEGER)");
It's been over a decade since I've used DBase-type files so the actual syntax may be off. Hopefully it gives you a starting point if nothing else.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
OK. Now I'm, uhhh I gon..., ahhhhhh. I don't have any idea what is THE PROBLEM. I set all stuff like this text down there but when I change light2 position from light2_position[]={10.0,0.0,10.0,0.0}; to light2_position[]={10.0,0.0,10.0,1.0}; (last number from 0.0 to 1.0 // directional to positional type of light) there is no lightning at all. It's just change of light type not position and other stuff. All setup code:
GLfloat light2_ambient[]={0.1,0.1,0.1,1.0};<br />
GLfloat light2_diffuse[]={1.0,1.0,1.0,1.0};<br />
GLfloat light2_specular[]={1.0,1.0,1.0,1.0};<br />
GLfloat light2_position[]={10.0,0.0,10.0,0.0};<br />
GLfloat light2_spot_direction[]={0.0,0.0,0.0};<br />
GLfloat light2_spot_exponent[]={1.0};<br />
GLfloat light2_spot_cutoff[]={45.0};<br />
GLfloat light2_quadric_attenuation[]={1.0};<br />
GLfloat light2_linear_attenuation[]={1.0};<br />
GLfloat light2_constant_attenuation[]={1.0};<br />
<br />
glLightfv(GL_LIGHT2, GL_AMBIENT,light2_ambient);<br />
glLightfv(GL_LIGHT2, GL_DIFFUSE,light2_diffuse);<br />
glLightfv(GL_LIGHT2, GL_SPECULAR,light2_specular);<br />
glLightfv(GL_LIGHT2, GL_POSITION, light2_position);<br />
glLightfv(GL_LIGHT2, GL_SPOT_DIRECTION, light2_spot_direction);<br />
glLightfv(GL_LIGHT2, GL_SPOT_EXPONENT, light2_spot_exponent);<br />
glLightfv(GL_LIGHT2, GL_SPOT_CUTOFF, light2_spot_cutoff);<br />
glLightfv(GL_LIGHT2, GL_CONSTANT_ATTENUATION, light2_constant_attenuation);<br />
glLightfv(GL_LIGHT2, GL_LINEAR_ATTENUATION, light2_linear_attenuation);<br />
glLightfv(GL_LIGHT2, GL_QUADRATIC_ATTENUATION, light2_quadric_attenuation);
something missing???????? Why is it working as directional and not as positional??? I didn't say that if light2_spot_cutoff[]={45.0}; is 180.0 and not something form 0.0 to 90.0 then it works again. WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
<<s@t@n>>
|
|
|
|
|
For graphics questions you might try www.gamedev.com or www.flipcode.com, both sites have people who may be better able to help.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Something is corrupting the heap in a 75K-line C++ console program. Normally a little sluething catches these, but this one does not occur in debug mode (where we can check heap consistency with _CrtCheckMemory) -- only release, and mini-dumps are not much help. Happens on XP, but the program is not doing anything particularly fancy -- just using plain only Win32 API's.
I've heard there are tools out there that can track this sort of thing down, particularly one called "Purify." Any recommendations or advice on these? Particularly, do they work well in practice?
Would greatly appreciate any advice.
|
|
|
|
|
Here is a free tool (Debugging Tools for Windows) from MS: http://support.microsoft.com/?kbid=268343
Also w2k resource has plenty of useful utilities:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp
No fancy UI, but they are fast and work well.
Edward
|
|
|
|
|
|
I'm developing a code in VC++ .NET to read XY data from a file, present the user with a simple plot of the data, allow the user to select the range of good data to use, and then, with the user's inputs, use that range of data for the rest of my calculations. What is the best way to plot the data from VC++ .NET?
Thanks,
Kevin
|
|
|
|
|
Best way is via drawing lines using MFC.
Kuphryn
|
|
|
|
|
i created an sdi based application but i don't like the default font it uses.
how can i change the font htat will be displayed in the editing area of the sdi???
thanx
|
|
|
|
|
If this is an MFC app, you can add a CFont member to the view, and in the OnInitialUpdate, create the font, then use the SetFont member function of the edit control (if that's what you have).
Steve S
|
|
|
|
|
There are two modal dialogs, A and B in my program.
The A must automatically call B when it is "shown".
But i don't know where to put the DoModal() in A to call dialog B.
Is anyone has any idea? Thx.
|
|
|
|
|
How about in OnInitDialog?
onwards and upwards...
|
|
|
|
|
It will causes B to be shown before A. What i need is to show A before B.
Is there another way?
|
|
|
|
|
How about creating a thread in the OnInitDialog?
|
|
|
|
|
At the end of dialog A's OnInitDialog() method, post a user-defined message. In the handler for that message, construct dialog B and call its DoModal() method.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
You could use WM_TIMER and set the time in A's OnInit.
Then in your OnTimer show B and Kill the timer.
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Hi!
I'm recieving packets with pcap_next and store them to a file with pcap_dump. To double check I also copy the packet to a buffer and print the first five bytes at the console to see if they are the same as in the file.
But they not. In the file the first packet come after 40 bytes. So I think it is the IP header 20 bytes + TCP header 20 bytes. Why are they not performed on the screen when I print them in the console?
So I think, okey, then there will be 40 extra bytes for next paket too, but it is not. It is only 16 bytes??? and also next packet, and next ...
Why is it 40 bytes for the first packet I recieve, and then 16 bytes for the packets I recieve after?
Can someone explain this for a confused man,
Stefan
|
|
|
|
|
Hi All!
I've created a Win32 API project and now i'm trying to create a registration procedure
for it, using a dialog box with two edit controls and a button control. The one edit control is the user name text and the other is the registration code text.
The problem is that i want to write a very advanced algorythm to make registration very strong without using any EXE compression tool!
Can anyone suggested me a strong algorythm for the dialog box registration procedure,
or a site where I could find examples to get some ideas?
Thanks for any answer!
|
|
|
|
|
Dennis L wrote:
...i want to write a very advanced algorythm to make registration very strong...
I've never heard of a registration algorithm. Please explain.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
David
Sounds like this is yet another attempt to provide some 'foolproof' software licensing, a la "Enter your name and a registration key" which then goes on to validate (or not) and allow use of the software.
Steve S
|
|
|
|
|
How to control the system volume(sound) control
|
|
|
|
|