15,300 Posted Topics

Member Avatar for emreozpalamutcu

Impossible. cab files are used for installation programs such as InstallShield. Your idea of an all-in-one is not workable because the program would have to be extracted every time someone wants to use it, and that would be very very slow.

Member Avatar for Ancient Dragon
0
87
Member Avatar for Mr_PoP

You could do it all in one query [icode]SELECT cq_rebirth.*, cq_action.* from cq_rebirth cq_action [/icode] But that may not work if there are column names that occur in two or more tables. It might also produce a very very huge result set with many NULL columns for any given row. …

Member Avatar for Ancient Dragon
0
210
Member Avatar for knotholaze
Member Avatar for cosmoss

Oops :) Click CONTROL PANEL link at the top of the page and look to see that all the info you entered is there.

Member Avatar for Ancient Dragon
0
58
Member Avatar for Suramachandran
Member Avatar for sivakumar.k

Are you writing an MFC program? afxres.h is a resource file for MFC programs. You can't compile MFC programs with the Express version of VC++.

Member Avatar for sivakumar.k
0
449
Member Avatar for pato wlmc

I would suspect one of the header files in your program contains a reference to that lib which causes the compiler to try and link with it. Did you read the system requirements from [URL="http://www.hitl.washington.edu/artoolkit/download/#windows"]here[/URL]? According to that link it may not be compatible with Vista or Windows because it …

Member Avatar for Ancient Dragon
0
594
Member Avatar for sanjith123456

>>answer immediately please Demanding immediate response is considered a very rude comment, which is probably the reason you got a negative rep for your post.

Member Avatar for frogboy77
-2
105
Member Avatar for once janister

The only knick-knack I keep is my wife :) although I did have a beerstein to keep pencils etc in.

Member Avatar for Ancient Dragon
0
92
Member Avatar for iwanttolearnc

when line 25 returns NULL then line 26 is going to cause a lot of grief. You need an if statement between those two lines. [code] if( (start = strchr(line,'$')) != NULL) { // blabla } [/code]

Member Avatar for iwanttolearnc
0
139
Member Avatar for EngSara

The best way to do that is to call that function many times then take the average time. For example, start timer, call the function 1,000,000 times, get end timer, (end-start)/1000000 = average. Of course you'll have to use floats for all calculations.

Member Avatar for menauman
0
6K
Member Avatar for gpta_varun

Maybe, and maybe not. Depends on the class. The compiler will generate a default copy constructor which copies only POD (Plain Old Data)-- contents of pointers and STL containers are not copied.

Member Avatar for Fbody
0
163
Member Avatar for alexandernst

argvw is nothing more than a pointer and pointers don't have methods. If you want to find the length of the string then call wcslen(argvw), which is the UNICODE version of strlen() >>argvw->c_str(), Same problem as above -- you are attempting to treat a poointer as if it were std::string …

Member Avatar for Ancient Dragon
0
601
Member Avatar for rtk1865

You are allocating memory for the structure, but not for [b]name[/b] element of that structure and that's why fscanf() doesn't work.

Member Avatar for rtk1865
0
205
Member Avatar for DrMAF
Member Avatar for DrMAF
0
4K
Member Avatar for Allasso

there is no such thing as a syscall number. Linking assembly program to c library is the same as linking c-only programs. When you wrote a pure c program you don't call functions by some number but by a function name. Same with your assembly program. Just link with the …

Member Avatar for Allasso
0
181
Member Avatar for Ancient Dragon

Will you please put [URL="How do I flush the input stream?"]this[/URL] back as a sticky? Its very useful thread that I post links to quite frequently here and at other forums that I visit.

Member Avatar for Ancient Dragon
0
142
Member Avatar for narlapavan

Yes, the vector can hold items of random data types [code] #include <vector> #include <string> int main() { int a = 0; float b = 1.2F; std::string hello = "Hello"; std::vector<void*> list; list.push_back(&a); list.push_back(&b); list.push_back(&hello); } [/code]

Member Avatar for Ancient Dragon
0
147
Member Avatar for mixmagz

what's the problem?? If you know what cout does then it's pretty simple to convert it to printf().

Member Avatar for mixmagz
0
154
Member Avatar for mbouster

Just save them as you would any other objects. Say you have three classes [code] #include <fstream> using std::ofstream; class A { // blabla }; class B { // blabla }; class C { // blabla }; int main() { A a; B b; C c; // now save the …

Member Avatar for Tellalca
0
210
Member Avatar for Rookie09

1. name must be defined in maiun(). Since the constructor of MyClass expects a std::satring then declare std::string name in main() 2. Remove the parentheses in the macro 3. There is no point in using that macro other than as an educational tool.

Member Avatar for Rookie09
0
240
Member Avatar for sheennave

Since this is managed c++ you must be using VC++. Use your compiler's debugger to find out when the value of the global changes. Either get_energy_liver_calf() is gbetting called before the value of global is set, or something else is changing it. You might also surround global with a namespace …

Member Avatar for sheennave
0
93
Member Avatar for headedtomexico

at line 4, Found and Temp both point to the same string. Therefore the parameters to strstr() on line 6 are the same string. And line 9 will do nothing because Temp - Found is the same as Dest - Dest, which is 0.

Member Avatar for headedtomexico
0
174
Member Avatar for Don_k

Program archive will most likely have to make two passes through each of the command line arguments. The first pass will collect a list of file names so that it can build a list of of those names along with their file sizes. Once all that information has been collected …

Member Avatar for Don_k
0
209
Member Avatar for kapilsolanki84

When you compile a program the compiler generates the executable program that is usually self-contained except maybe for a few operating system shared libraries and DLLs. You can move the executable program any where you wish on your computer and it will normally run without problems. The source files (*.cpp …

Member Avatar for sharunkumar
0
3K
Member Avatar for pdwivedi

I haven't tried it in c++ but can't you do it something like you would in a stored procedure? if exists(select * from table where name = "John Doe") update table ... else insert table ... I know the above works with Sybase database stored procedures. Since each databases has …

Member Avatar for pdwivedi
0
256
Member Avatar for tawes01

Maybe [URL="http://www.suite101.com/content/using-the-win32-api-edit-control-a23709"]this[/URL] will help you

Member Avatar for tawes01
0
224
Member Avatar for localp

That '|' sign is called a cursor. If you want win32 api GUI program then there are cursor functions, such as [URL="http://msdn.microsoft.com/en-us/library/ms648390(v=vs.85).aspx"]GetCursorPosition()[/URL]

Member Avatar for jonsca
0
169
Member Avatar for anilmusaddi

If you want programming advice then come to DaniWeb. But if you want legal advice then see a lawyer or solicitor.

Member Avatar for cruisemiraz
0
151
Member Avatar for Joey_Brown

Your program can create a file anywhere it wiches as long as it has the permissions needed to do that. You can't create a file in a directory where you don't have write permissions. Or are you trying to ask if you can put the path in a file and …

Member Avatar for Joey_Brown
0
92
Member Avatar for Hey90

You are asking the wrong question. If you have an array of 100 structures then keep a counter to determine which elements have already been used. Its pretty simple concept -- really. [code] struct company { float east,north; char name[20],place[20]; }; int main() { struct company companies[100]; int lastUsed = …

Member Avatar for Adak
0
803
Member Avatar for yUNeeC

AFAIK SDL does not support console programs. See [URL="http://www.libsdl.org/"]this[/URL] if you have not already.

Member Avatar for Ancient Dragon
0
133
Member Avatar for 3drenderer

what are the errors with procs.asm??? Instead of using ml to link the two object files why don't you just call link.exe directly?

Member Avatar for Ancient Dragon
0
104
Member Avatar for Dave Sinkula

[quote]However, please note that when you enter text, you press the [Enter] or [Return] key and this character does not just vanish, it remains in the input buffer.[/quote] That is only true when using scanf(). Both gets() nor fgets() extract the '\n' from the keyboard buffer.

Member Avatar for WaltP
10
8K
Member Avatar for jonsca

Another forum I visited merged multiple consecutive posts by the same person.

Member Avatar for jonsca
0
242
Member Avatar for banders7

Yup -- previous errors confirmed when I tried to compile it with Code::Blocks. Will not compile at all with VC++ 2008 Express because it does not support dir.h

Member Avatar for Azar Mohamed
-3
4K
Member Avatar for hiddepolen
Member Avatar for jordankaushik

time() returns the current system date/time in seconds since about 1 Jan 1970 ([URL="http://www.techmount.com/index.php/20040830/epoch-time-unix-time-stamp/"]epoch time[/URL]) localtime() will return a tm structure based on the time_t value that was returned by time() or other similar function. ctime() returns a character array based on the contents of struct tm that is passed …

Member Avatar for Narue
0
149
Member Avatar for dungdragon88

[URL="http://msdn.microsoft.com/en-us/library/4x1xy43a(v=vs.80).aspx"]Here [/URL]is explaination of Document View archeture. The difference without Document/View is that the MFC project does not contain a CDocument-derived class. All the data objects will have to be contained within the CView or some other class.

Member Avatar for Ancient Dragon
0
29
Member Avatar for malli123

You can not use / characters in file name. The best format is YYYYMMDD (Year Month Day)format because such file names can be easily sorted sorrecty. To get the system time use the localtime() function found in time.h. That will return a structure that you can use either sprintf() or …

Member Avatar for malli123
0
147
Member Avatar for lcx88

You need another loop. Are the student loads separated by + symbol as shown? Delete line 53 -- do NOT close the file here. [code] ifstream& getload(ifstream& File) { // read one student load return File; } int main() { ifstream File("filename.txt"); while( getload(File) ) { char x[3]; // read …

Member Avatar for Ancient Dragon
0
133
Member Avatar for jahangir hassan

You are going to have to ask a better question then that. What exactly do you mean by "timer code" ??? Here is one interpretation. [code] #include <time.h> int main() { time_t now = time(0); } [/code]

Member Avatar for Ancient Dragon
-3
49
Member Avatar for Kamal_Java

Do the MFC [URL="http://msdn.microsoft.com/en-us/library/aa716527(VS.60).aspx"]Scribble tutorial[/URL] and it will give you a rough idea how do do it. Basically you will have to learn drag-and-drop then create objects that draw themselves at given coordinates. To delete an object just have it redraw itself with background color of the canvas.

Member Avatar for Ancient Dragon
0
186
Member Avatar for Dani

Huh??? If you are talking about that purple circle that looks like a dart board, I was always able to do that

Member Avatar for Nick Evan
0
140
Member Avatar for SaraSchmidt

Look in the purple ribbon near the top of the screen. Clikc the link CONTROL PANEL

Member Avatar for SaraSchmidt
0
46
Member Avatar for Goalatio

int 16h is keyboard interface. Put the desired function in ah and issue int 16h interrupt. See [URL="http://webpages.charter.net/danrollins/techhelp/0228.HTM"]this link [/URL]for one of many links that describe the services. When ah is 0 (as in xor ax,ax) then int16h will wait for keystroke.

Member Avatar for Goalatio
0
1K
Member Avatar for lochnessmonster
Member Avatar for COKEDUDE

Its compiler dependent -- compilers are free to use any extension they please. Microsoft uses *.cpp, while g++ and MinGW use *.cc, although both compilers can be set up to recognize other extensions.

Member Avatar for myrk
0
239
Member Avatar for pawan_sharma777

I'm not surprised. Install the [URL="http://dosbox.software.en.softonic.com/download?gclid=CLCD75vV_KUCFcbsKgodqUrLnw"]DOSBox[/URL] emulator.

Member Avatar for Ancient Dragon
0
119
Member Avatar for hsetaknev

All the functions found in string.h expect character arrays to be terminated with a '\0' character. For example [icode]char Hello[] = {'H','E','L','L','O','\0'}[/icode] An easier way to code the same is [icode]char Hello[] = "Hello";[/icode] In that case the compiler will add the '\0' character to the end of the string …

Member Avatar for hsetaknev
0
152

The End.