Hi all
I'm not sure if this question makes any sense, but I'm really stuck and had to ask...
I have some linking errors (mostly 2005) that I can't solve. One example is:
error LNK2005: "public: __thiscall play::play(void)" (??0play@@QAE@XZ) already defined in Ch10Ex3Doc.obj
Has...
I've tried following the help in Visual C++, but it's quite difficult to understand for a beginner (well at least for me, anyway).
Wondering if anyone could give me a 'dumbed down' explanation? Would be really grateful for any help, as always.
Thanks.
Hi CraigD
Thanks for your reply. Most grateful. Even though it wasn't exactly the solution, your reply made me look at the problem more deeply and I was able to work it out for myself.
Thanks alot.
Hi all
I was a reading a MIDI Visaul C++ book and in one line it read:
'Globally define the conditional _MIDIIN'
Anyone know how I would globally define a conditional?
Would be most grateful for any advice given. Thanks alot.
Thanks for your tips cibrran and Kapadia. I managed to solve it by declaring the data type to CString nameoffile. Once again thanks for your replies. See you around...
Hi all!
I'm trying to recreate an existing file (copy old file to a new file). I'm using CFileDialog class to do this. I'm stuck as I get an error.
nameoffile = NewFile.GetFileTitle ();
The line above gives me the error:
error C2440: '=' : cannot convert from 'class CString' to 'char [260]'...
Hi everyone!
Please can somebody stop my heartache...
How do you convert a double type to a 32-bit character string (a LPSTR), without losing any data?
I can do this by using 'sizeof' but too much data is lost!
Here is my warning...
warning C4244: '=' : conversion from 'double' to 'char'...
Hi everyone!
I'm having trouble making a class template (I think this what I'm supposed to do).
I want to use the polar function in <complex>.
i.e Syntax of polar
template<class T>
complex<T> polar(const T& rho, const T& theta = 0);
How can I use the 'polar' function in my program...
Hi yuppie
You said "MSDN search database that you've mentioned is it the HELP in MS VC++ 6.0? Because due to something, I've loaded in my MS VC++ without any help..."
If you go to Help|Search you can search for functions causing errors and find libs and *.h files needed to stop...
Hi everyone!
I downloaded C++ code (FFT algos) and couldn't get it to work and got two link errors!
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/fftdom.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I tried looking up these errors in...
Hi Brother C
I found out how to open a wav. file for my application on my own. Though your reply did not help me much I still really appreciate you efforts friend.
On behalf of everyone else on this forum, Thanks
*TOPIC CLOSED*
Thanks for your reply Brother C. Your advice was really helpful and I am really grateful.
But now I have another problems! I don't really know how to open a file in Visual C++. Here is my code so far...
CFileDialog ofd(TRUE, NULL, NULL, NULL, "Wave File (*.wav)
|*.wav|All File (*.*) |...
Thanks for your reply Brother C. Glad someone is willing to help me.
I know how display a messagebox in *Dlg.cpp (created a dialog based application using MFC wizard) via MFC classwizard.
I have have header files in plain 'non visual' C++ code. I would like to change the Cout commands in the...
I'd like to re-phrase my question because I don't think it makes sense!
How do I display a window dialog/messagebox in a header file? What header file do I need to call? What do I do?
I've read displaying dialog/messagebox is something to do with the CDialog class. What header file can I find...
I am a beginner to Visual C++ (so I hope my question makes sense).
I have a 'DOS' based application (cpp and header files). The headers and cpp files uses cin and cout commands.
I have created an MFC application and want to call member functions from the DOS header files when the user clicks...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.