|
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
|
|
|
|
|
Thanks for the answer....
so...I have stdafx.h in the same dir where I have all the files you see in the command line: is this wrong?
My stdafx.h has only 4 lines, these:
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxmt.h> // MFC multithreading
...and afxwin.h include afx.h which contains the implementation of CExcepion class...
Greatings from Italy!
|
|
|
|
|
Sorry this is ok!
Thanks for the answer....
so...I have stdafx.h in the same dir where I have all the files you see in the command line: is this wrong?
My stdafx.h has only 4 lines, these:
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxmt.h> // MFC multithreading
...and afxwin.h include afx.h which contains the implementation of CExcepion class...
Greatings from Italy!
|
|
|
|
|
I deleted and restarted my Visual C++ 2008 project typecase_vc (which is a translation of my good old faithful Borland 4.5 C++ project / program Typecase (including all source forms, at http://www.buckrogers.demon.co.uk/software/typecase.zip , Windows's Character Map but its screen display is much bigger and clearer)).
I fought my way through a barrage of incompatibility errors (mostly caused apparently by Visual C++ having three sorts of char* pointers, LPCWSTR and LPWSTR and char*) and I have at last got a typecase_vc.exe . On running that typecase_vc.exe, I found that the resulting typecase_vc program window displayed substantially the same as on the Borland 4.5 C++ version; but:
(1) At the left of the top edge the program name appeared in Chinese characters.
(2) The menu did not display.
(3) When the program displayed characters at the bottom of its window, each flashed as an ordinary character for a moment and then changed to a Chinese character.
When I tried to edit its resource file typecase_vc.rc, I got a small window with a message "Resource Editing is not supported on the Visual C++ Express SKU", and I had to use Notepad separately to set typecase_vc.rc to be the same text as in my Borland 4.5 C+++ version. What is happening? Is the free download of Visual C++ 2008 a "crippleware" and I must buy the full version of Visual C++ 2008 to get all the facilities? Where can I buy the full version of Visual C++ 2008 from? What price? Will it come properly in a box with a CD and manuals printed on paper? (I am in England.)
Where can I get the MSDN Library from?
Where can I get full help (preferably on my PC or on a printed book, not on the web) on all the Windows C++ functions (i.e. MessageBox(), SetFont(), etc etc etc etc, including all new functions?) I have some old printed books of that sort, but they are for versions about 10 years old, and do not have the new functions, nor such things as the difference between the three abovementioned sorts of pointers-to-character.
modified on Thursday, December 13, 2007 7:08:26 AM
|
|
|
|
|
I can help on the characters if nothing else as I'm still on VS2005. You've obviously missed the last decade or so so I'll tell you about something called UNICODE (www.unicode.org) which is a standard for representing characters across lots of languages. This obviously requires more than 8 bits or the 7 of old ASCII so new C++ types are required. We now have wchar_t typdef(ed) to WCHAR and sometimes defined underneath as unsigned short and LPWSTR which is a wchar_t* with LPCWSTR for const wchar_t*. These all refer to 16 bit UNICODE characters and strings.
All the old char, unsinged char, char*, LPSTR, LPCSTR stuff is the same as it ever was. To make things fun there is also TCHAR, LPTSTR, LPCTSTR which are defined as the the wchar_t equivalents if your project #defines UNICODE and _UNICODE (Use both because MS screwed up) and are defined to the char equivalents otherwise. You'll need to #include <tchar.h> as likely as not to make this magic work.
If you think this is all somewhat arcane just wait till you start getting deprecation warnings for not use Safe string functions.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|