|
HI
I am an amateur in the field of vc++. i am doing my final year project, in which i am developing a user interface using VB6.0
I need to interface this GUI with some Pc Add on cards via A vc++ layer
could anyone please help me out with this task?
If there are some useful links ,do inform me at sreekanth101@rediffmail.com
tanking you in anticipation
Sreekanth
|
|
|
|
|
I have a Report style CListCtrl and placed it in a CFormView.
I have lots of columns such that not all of the columns appear on the ClistCtrl area so there is automatically a horizontal scrollbar.
Now when i press left or right keyboard keys, I want Report list ctrl is to select previous or next column. I have that code already but it doesn't get called. Instead when i press the arrow keys, the list ctrl just scrolls left or right.
How do I override this behavior? What are the related functions needed?
tnx in advance
maverick
|
|
|
|
|
Hi All
Can anyone let me know how I can publish an Exe over Cluster Servers.
When I am trying to access the exe from Cluster Servers its asking me to Publish the Exe which is because of Security settings of Windows 2003.
Regards,
Aziz Dilwara Wala
Software Programmer/System Consultant
CivilSoft - Dubai.
Tel : (0)4-2955660
Fax : (0)4-2955662
Email : aziz@civilsoft.net
|
|
|
|
|
Can anyone please help me in the following issue
my requirement is to detect if a 3rdparty firewall like Norton/Mcafee is installed. Do any one know of a generic windows api that tells if a 3rd party firewall is installed.THanks for the help in Advance.
-Vinoth.
|
|
|
|
|
In Visual Studio .NET 2003 I could write code like the following without any errors:
std::vector<string>::iterator position;<br />
position = NULL;
However the same code under Visual Studio 2005 produces errors.
Which is the correct way to use NULL's and iterators in VS 2005?
I am the handsome one in the crowd.
|
|
|
|
|
Not done any C++ for ages but I thought iterators could only point to coll.begin(), coll.end() or some position in the collection?
Maybe what you did in VS 2003 was non-standard behaviour and VS 2005 now enforces it?
Kevin
|
|
|
|
|
Hello,
You're right about that, the only valid values an iterator can have are collection.begin() through collection.end() where the latter just points to one element after the last one.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Nice to know that my memory hasn't deserted me yet!
Kevin
|
|
|
|
|
Hello,
The C++ compiler has become more type safe and I think that you have a problem there. There is no implicit conversion anymore from an integer to an iterator. The right way for you to initialize is:
std::vector<int>::iterator position = SomeVector.end();
Hope this helps.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello everyone!
OK, look:
<br />
CFileDialog openFile(TRUE, NULL, NULL, OFN_OVERWRITEPROMPT|OFN_EXPLORER,<br />
"Mazzee map groups (*.lmg)|*.lmg|Mazzee maps (*.lmm)|*.lmm|All files (*.*)|*.*||", NULL);<br />
<br />
... ~45 lines later...<br />
<br />
AfxMessageBox((LPCTSTR)openFile.GetFolderPath());
<br />
curMap = (LPCTSTR)openFile.GetFolderPath() + mapsDir + curMap;
Anyone know why it gives me an access violation? I looked at GetFolderPath()'s code, and it's returning a released buffer when this is less than zero:
GetParent()->SendMessage(CDM_GETFOLDERPATH, (WPARAM)MAX_PATH, (LPARAM)strResult.GetBuffer(MAX_PATH))
Anyone know why it's giving me that? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
I have a misbehaving multithreaded application which works so so using CreateThread and associated code ( set priority etc.) I have changed to AfxBeginThread and cannot compile( always fails with 1 parameter not matching required parameters) it without changing my thread processing function to UINT ThreadProcessFunction(... I need this function to be
UINT CALLBACK ThreadProcessFunction(... ! I am monitoring events from COM port. The AfxBeginThread "calls" CreateThread - so why it does not work?
Thanks for reading.
Vaclav
|
|
|
|
|
Post some code, and you might get a better response...
|
|
|
|
|
i'm getting started on an emulator, and have a question about performance. Which is faster, using a game loop type of looping code, or running the cpu in a different thread (with synchronization issues to worry about). i.e.:
GameLoop:
WinMain(...) {
MSG msg;
do {
if(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
} else {
RunCpu(100000);
}
} while(msg.message != WM_QUIT)
return msg.wparam;
}
different thread:
void File_StartEmulation() {
DWORD threadId;
if(!CreateThread(NULL, 0, &CpuLoopThread, NULL, 0, &threadId)) {
ShowErrorMessage();
}
}
thanks alot for any help
|
|
|
|
|
Doing your processing in a PeekMessage loop is very 1990's. It will impact on the responsiveness of the app and you won't get predictable performance.
Writing multi-threaded code can be quite challenging, but is the way to go, for anything but the simplist of tasks.
Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
|
|
|
|
|
|
Kixdemp wrote: What will the emulator emulate?
If he uses PeekMessage then it will emulate a multi-threaded program, very badly.
Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
|
|
|
|
|
i'll (hopefully) be emulating a low-powered desktop pc on a high-powered embedded device (a pocket pc), so i'll need as much speed as possible, which probably will involve assembly at some point. it'll be a monster! Though I already had a simple windows prototype, i'll be completely rewriting it for the pocket pc.
anyway, i guess for now i'll be going with the multithreaded version. wish me luck to get it off the ground.
|
|
|
|
|
|
I'm testing a DirectShow Filter
I'm including this code to initialize an COM object
hr = CoCreateInstance(CLSID_MPEGFilter,
NULL, CLSCTX_INPROC_SERVER,IID_IBaseFilter,
(void **)&m_pMPEGWriter);
I have included the header in my application so it compile ok.
But I get a link error
error LNK2001: unresolved external symbol CLSID_MPEGFilter
- How can I know if the object has been registered?
- I don't see any .lib to include just couple of DLL
Any idea what I can be doing wrong?
Thak You
Hector
|
|
|
|
|
In the Debug Watch window type "hr,hr" and you will see the description of error.
Nevertheless, don't forget to call CoInitialize(NULL);
Dudi
|
|
|
|
|
I can not go to de Debug Window at least I have an executable so I have to fix the link error first. Am I correct?
|
|
|
|
|
I think that you didn't understand me.
CoCreateInstance returns HRESULT. you defined hr variable as HRESULT.
Typing "hr,hr" in the Debug Watch window shows the error description.
|
|
|
|
|
Maybe if you use the #pragma import directove on the DLL that has the MPEG filter class object in it, then your unresolved external will go away.
No shirt, no shoes, no brains, no service.
|
|
|
|
|
Hi All.
I have difficulty to save the content of variable (e.g. 2 dimension array) to a txt file using visual c++ 6.0 MFC.
Sample case :
double pic[4][4]={0,1,0,1, 1,0,1,0, 0,0,0,0, 1,1,1,1};
and I want to save it to the txt file (e.g. myFile.txt) so that myFile.txt contains 0,1,0,1, 1,0,1,0, 0,0,0,0, 1,1,1,1 which is readable (non-binary format) when I open the file with notepad.
Can anyone help me to solve this problem ?
Thanks very much for your attention and help in advance
Regards
Ronald Ruly
University student in Singapore
|
|
|
|
|
I suppose you should use itoa() on your data (items in your array) and then simply write it down as a string.
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
In the end, war is not about who's right, it's about who's left.
|
|
|
|