|
Hej,
Im using M$VC++6.0 and when i compile my application, VC will just get stuck during compiling or linking. Could someone help me on that?
My current solution is CTRL ALT SUPPR, and restart VC++, i guess there is something better...
Thanks,
Remy
PS: I have now this problem even with small projects.
|
|
|
|
|
Make sure your header files (the ones you create) can not be included more than once in any module, even acidentaly.
The simpilest way to do that is to alway do the following:
#ifndef _MYHEADER_H
#define _MYHEADER_H
#endif // _MYHEADER_H
Trust in the code Luke. Yea right!
|
|
|
|
|
Thanks John,
I double checked every file and created a new project from scratch and the same problem comes again
Its really a pain to kill the VC process almost every time i compile...
Remy
|
|
|
|
|
I think you should try reinstalling VC++. Something sounds terribly wrong.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Well blast it.
If you look at the Class Wizard generated header files you will see the following:
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
If that does not do it then I am out of ideas.
Unless you mistakenly did something like this:
#include "mysource.cpp"
which can cause the same problem.
Good luck solving it.
Trust in the code Luke. Yea right!
|
|
|
|
|
Are we talking linking or compiling here?
If it's linking, then I think it's time to re-install your environment.
|
|
|
|
|
I beleive he is stuck in the compiler, because if he was stuck in the liker then he would know it. If you read the origanal post he does not know where the process gets stuck, but reinstalling may be his only choice. I have seen this behaviour before and a re-install was not needed, but it does not do any harm to try.
Trust in the code Luke. Yea right!
|
|
|
|
|
Are you using STLFILT? I have seen this happen a few times using STLFILT.
John
|
|
|
|
|
I had a similar problem when I had Norton Antivirus installed.
When VC tries to create the executable, Norton thinks a virus is writing to the hard drive, and stops the process. At least, that's what appeared to be happening...
Get rid of Norton (if you have it) and see if it changes anything.
There are 10 kinds of people - those that get binary and those that don't.
|
|
|
|
|
I uninstalled Norton and everything is perfect now...
Thanks Miszou and all the others...
|
|
|
|
|
Hej,
Im using M$VC++6.0 and when i compile my application, VC will just get stuck during compiling or linking. Could someone help me on that?
My current solution is CTRL ALT SUPPR, and restart VC++, i guess there is something better...
Thanks,
Remy
PS: I have now this problem even with small projects.
|
|
|
|
|
Hi All,
I am hoping that there is someone out there who will understand my problem as there seems to be very little documentation avalible to read the values of the NDIS 5.1 compatible drivers. I would like to initiate a scan of the BSSID's in my network area. The documentaion tells me I need to use OID_802_11_BSSID_LIST_SCAN to force the wirelss nic to scan the area for access points. Unforetunately I haven't been able to guess how to call this feature. The code that I tried is the following
PNDISUIO_QUERY_OID pQueryOid = NULL;
pSetOid = (PNDISUIO_SET_OID)&QueryBuffer[0];
pSetOid->ptcDeviceName = _T("WLAGS461");
pSetOid->Oid = OID_802_11_BSSID_LIST_SCAN;
hr = DeviceIoControl(
m_hNdisUio,
IOCTL_NDISUIO_SET_OID_VALUE,
(LPVOID) pSetOid,
sizeof(PNDISUIO_SET_OID),
NULL,
0,
&dwBytesReturned,
NULL);
but it fails with error 0x57 (parameter not correct) and I don't know what to change.
I also have the following code that I have been using to get the aquired list (or the one already in the NIC database)
<code>
PNDISUIO_QUERY_OID pQueryOid = NULL;
pQueryOid = (PNDISUIO_QUERY_OID)&QueryBuffer[0];
pQueryOid->ptcDeviceName = _T("WLAGS461");
pQueryOid->Oid = OID_802_11_BSSID_LIST;
hr = DeviceIoControl(
m_hNdisUio,
IOCTL_NDISUIO_QUERY_OID_VALUE,
(LPVOID) pQueryOid,
0xFFF,
(LPVOID) pQueryOid,
0xFFF,
&dwBytesReturned,
NULL);
</code>
and it works fine. I get a list of access points.
Anyone have any suggestions?
Sincerly,
Clint Singer
P.S. I should mention that I am also working on Windows CE (although that shouldn't make a differance except for the ptcDeviceName) paramter.
|
|
|
|
|
Hi,
please have a look here:
WLAN Scan with NDIS Miniport and Much More[^]
I hope that it will help you.
in case that you already overcame your problem and in case that you can contribute to the questions that I asked under the responses of the article that I just gave you - I will appreciate your help as well.
Thanks,
-- Amit.
|
|
|
|
|
I'm trying to display a bitmap on my window. Here's my code:
BITMAPINFO biBitmap = {0};
BITMAPINFOHEADER bihBitmap = {0};
bihBitmap.biSize = sizeof(BITMAPINFOHEADER);
bihBitmap.biWidth = 16;
bihBitmap.biHeight = 16;
bihBitmap.biPlanes = 1;
bihBitmap.biBitCount = 24;
bihBitmap.biCompression = BI_RGB;
bihBitmap.biSizeImage = 0;
bihBitmap.biClrUsed = 0;
bihBitmap.biClrImportant = 0;
biBitmap.bmiHeader = bihBitmap;
PAINTSTRUCT ps;
HDC hdc = BeginPaint(ghWnd, &ps);
HDC hdcMem = CreateCompatibleDC(NULL);
HBITMAP hbm = CreateDIBitmap(hdcMem, &bihBitmap, CBM_INIT, finalrgb, &biBitmap, NULL);
HBITMAP hbmT = (HBITMAP)SelectObject(hdcMem, (HBITMAP)hbm);
BitBlt(hdc,60,60,16,16,hdcMem,0,0,SRCCOPY);
SelectBitmap(hdcMem,hbmT);
DeleteDC(hdcMem);
EndPaint(ghWnd,&ps);
finalrgb is a pointer to an array of unsigned chars containing RGB values for a 16 by 16 pixels picture.
What am i doing wrong?
Thankyou!
|
|
|
|
|
I've always noticed that object ID's for my menu items show up in each class in ClassWizard (Visual Studio 6). So, for example, I've associated my menu resource with my view class. And that class is where I add all of the menu items' message handlers. But the menu items' object IDs also appear in my options dialog class (in ClassWizard).
Since my menu will never appear in this dialog box, my CDocument class, etc., is there a way that I can limit menu object IDs to show up only in the class which hosts the menu resource?
It's kind of annoying when I add a message handler for a menu item, then realize that I'm in the wrong class...
Jonah Bishop
Visit JGB Productions
|
|
|
|
|
It is very iritating isn't it.
Another iritaion:
If you create a dialog based application then the about dialog class is defined in the same file as you main dialog and every time you bring up the Class Wizard from with in that module it automaticaly selcts that About class for modifying.
I am like you, at the very least I wish that once a handler has been assigned for an ID that it would no longer give me the option to add anoutehr one some where else (since the second one would not be call any way).
Trust in the code Luke. Yea right!
|
|
|
|
|
Hi.
I use the StretchBlt function to draw a image to my dialog, the StrechBlt is called alot, every 100 ms, but it seems like there is a memory leak, and I can't figure it out.
I just call this:
StretchBlt(GetDC(hwnd),0,0,200,200,TimesUp,0,0,0,0,SRCCOPY);
I have initilized my image in another call, which does not get called every time.
Anyone have any idea?
Thanks
|
|
|
|
|
HDC hDC = GetDC(hwnd);
StretchBlt(hDC,,0,0,200,200,TimesUp,0,0,0,0,SRCCOPY);
ReleaseDC(hwnd,hDC);
Trust in the code Luke. Yea right!
|
|
|
|
|
There is a form to put a image.jpg (or another format) in a ListCtrl ?? If the CListCtrl::SetBkImage() does not work, how can I make that ??
[]'s
Cris ...
|
|
|
|
|
http://www.codeguru.com/listview/background_image.shtml
http://www.codeguru.com/listview/ListBkImage.html
|
|
|
|
|
These pages cannot be displayed. Can you show me how make this ??
[]'s
|
|
|
|
|
Hi,
I utilize Visual C++ 6.0 with MFC.
I have split the main window in two panes with a static splitter.
In my view OnDraw member function, I want to draw text in a pane and graphic in the second pane.
I have a code like this one to activate a pane:
pMainWnd->SetActiveView((CView*)pMainWnd->m_wndSplitter.GetPane(0, 0));
But I draw in both panes.
How can I draw in one pane only?
Do I have to utilize two views?
Thanks,
Claude
|
|
|
|
|
I haven't done what you are doing, but in an MDI app with splitters (see sig) each pane is a separate view and you draw into the required view.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
You should be using two different view derived classes: 1) a text view and 2) a graphics view. It sounds like you are using the same view class for both panes so that when you modify the document and call UpdateAll() both panes show the same data.
Trust in the code Luke. Yea right!
|
|
|
|
|
:(Is it possible to access the screen image saved when the CS_SAVEBITS style is used. I do realise that the image may have been saved by the driver or it may be an image stored as a bitmap in memory. I am also aware that the image can become invalid at any time. I am trying to figure out how this mechinism works [to get insight into some incomplete ideas I have].
Trust in the code Luke. Yea right!
|
|
|
|