|
I don't know, ever heard of UNICODE ?
on another tangent, there is a macro, I think, called A2W that converts LPSTR to LPWSTR, you can start by looking at those and start your education from there.
|
|
|
|
|
I need a small function or code to do interpolation. Knowing Y(Xi) to fine y(x) for a give x.
If you have a code please share with me.
Thanks
|
|
|
|
|
I know you get fast service here, but surely google is faster: link[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
y = (x-x1)*(y2-y1)/(x2-x1)+y1;
|
|
|
|
|
Thanks for your message.
I know the math behind a interpolation. Now I am looking a ready code or function.
|
|
|
|
|
He's given you the code. Just wrap that into a function, with the relevant parameters, returning the relevant result.
Barring him coming round to your office desk, there's not much more he can do for you.
Iain.
|
|
|
|
|
Interpolation is heavy duty if you have complex functions. You better implement an acurate function.
Greetings from Germany
|
|
|
|
|
Thanks and greeting from US.
I am looking for some code and save me to write again.
|
|
|
|
|
If you need an interpolation function, you need to specify what exactly you need to interpolate.
Ie. Linear? Quadratic? Cubic? Higher Polynomials?
|
|
|
|
|
Thanks.
Spline will be good.
|
|
|
|
|
I often copy a full directory of a proiject to another director and change the programs
to another application, but I still have to use the same project name. When I got the new compiled
excutable file. its name is still the same as the old one.
This is a MFC program project. I do want to change the project name and get new name for the new application. I do not knw how to change the project and program excutable names.
Thanks
|
|
|
|
|
Edit the project setting: Linker/General/Output File
It may be a good idea to go through all the settings of the copied project and
make sure there's no settings that still relate to the old project
Mark
|
|
|
|
|
|
How can a program detect that the local computer is connected to a network ? In VC++6 please...
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Nice stuff!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Some networking stuff in VS2003: http://www.codeproject.com/KB/IP/INetCfg_Explorer.aspx
Greetings from Germany
|
|
|
|
|
Thahks a lot!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Hello,
I have a 5.1 audio card and i want play a different song on each speaker.
Actually, I Create a directsound buffer, load my wav and i play it but It is played by all speakers.
I have no idea how to play my directsound buffer in one sepaker.
Thanks......
|
|
|
|
|
The 5+1 channels of Dolby 5.1 are a different sort of thing altogether to the Channels in direct sound. To control the Dolby channels directly you would have to use a low level API targetted at your sound card or write your own card driver. Depending on how your sound hardware is implemented it may not even be possible then.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
can anybody tell me.how to transfer data from one dialog to another....
thx in advance
SKDOBHAL
|
|
|
|
|
please read this[^] article for a first step in the mood...
|
|
|
|
|
In second dialog, add static text to dlg. In class wizard, give member variable name to static text, for example, m_str.
In Dialog 1, put this piece of code where u wnat.
CMyDialog2 dlg2;
dlg2.m_str= m_str2;
dlg2.DoModal();
try this..
|
|
|
|
|
Hi all,
I'm using mex command to compile (from Matlab) c++ source
code.
I need to write some data on serial port and I use
CSerialPort v1.03 class (you all know it! )
I use the following comand line:
mex -g MioFile.cpp cmvision.cpp serialport.cpp StdAfx.cpp
(mex only calls Microsoft compiler)
and the compiler answers:
c:\Programmi\MATLAB71\work\CamVision\serialport.h(31) :
error C2504: "CException": base class undefined
c:\Programmi\MATLAB71\work\CamVision\serialport.h(39) :
error C2061: syntax error: identifyer "CDumpContext"
c:\Programmi\MATLAB71\work\CamVision\serialport.h(42) :
error C2146: syntax error: ";" missing before
identifyer "GetErrorMessage"
c:\Programmi\MATLAB71\work\CamVision\serialport.h(42) :
error C2501: "CSerialException::CString": ..........
......and some other stuff!
I guess the compiler doesn't find afx.h, but....
......I don't understand! Someone can help me? How can i use correctly MFC from command line?
You can say, "why do you use Matlab?": I'm writing a dll and I need Matlab preprocessor...but this is not the problem...so if you prefer, forget Matlab and just think to the command line!
I use Microsoft .NET 2003
Thanks!
Stein.
|
|
|
|
|
you need to include a stdafx.h where is MFC stuff is included.
Greetings from Germany
|
|
|
|