|
Welcome to the f***ing world of .NET. You have to stick with the Oct 2001 MSDN in order to use it with VC 6.
"We're telling you where you will go today." -- Microsoft
--Mike--
"Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter."
-- Daniel Ferguson, 1/31/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
I always run a seperate instance of MSDN rather than use it from VS.
|
|
|
|
|
I installed new version of .Net last night,and MSDN was part of it,and many article is updated and changed.I think for VC++6 it is better to use old version of MSDN
Mazy
|
|
|
|
|
This is a post I put round work today re this:
"Dear All,
Be aware that the new MSDN Jan 2002 collection does not work with visual studio 6 (F1 for example produces an error).
A quick investigation reveals that MS have changed their help system (again) - it now uses the:
C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe
'Document Explorer' to launch the collection. Since this is significantly different from .chm files and suchlike it ain't
gonna work for VS6. Their may be a way to hack around this - the collection is nominally launched through VS
via an intermediary DLL (vshelpui.dll - i think) and checks the following key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTML Help Collections
Of interest is this -
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTML Help Collections\Developer Collections\0x0409\0x039a1a660
which points at the chm collection for old MSDN installs and tells VC6 where to find it.. Basically MSDN *used* to tell
VS6 where to find it and how to launch it. MS couldn't make MSDN compatible with VS6 and/or couldn't be
bothered to produce a patch for VS6 to launch things correctly.
You can add a tool to the tools menu (really) that launches the new MSDN via the following path
"C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe" "
And yes, it sucks
|
|
|
|
|
Ok, me again. Worked out the following. You can install BOTH MSDN Oct
and MSDN Jan 2k2 on the same machine - and they work with both VS .NET and VS 6. Yay! We're using a network install here so the total cost of having
VS .NET plus two MSDN 'lite' installs is about 1 GIG.
Works for me..
Timbo
|
|
|
|
|
i want to define my own add method that adds one object to some array every time it is called
does any one know how to do this please?
thanx
|
|
|
|
|
Just do it.
<br />
bool CMyClass::AddObject()<br />
{<br />
MyArray[x] = new Object();<br />
<br />
return I_read_book ? false : false;<br />
}<br />
|
|
|
|
|
Hi there,
I have a dialog wizard which I would like to perform its data integrity checks and its eventual task of inserting tonnes of data into various tables.
However, I need all the validations and eventual data insertions to be wrapped in a dll so other applications could use it as well.
How do I load this DLL into my exe wizard in Visual C++ and start using its member functions? what are the options and what is the best way of doing it?
thanks
|
|
|
|
|
From a simple DLL standpoint you would use LoadLibrary("DllName") and GetProcAddress(...) to get access to the functions and use them.
I would however consider writing your data access component as COM. More portable and easier to use.
|
|
|
|
|
I have a 4-byte data, it's content is:
bits 31-24 : pixel_data
bits 21-23 : unused
bit 20 : direction
bits 19-10: y_address
bits 9-0: x_address
So I construct a structure for it as follows:
#pragma pack(1)
typedef struct
{
unsigned int pixel_data : 8;
unsigned int unused : 3; /* must always be zero */
unsigned int direction : 1;
unsigned int pixel_x_address : 10; /* column */
unsigned int pixel_y_address : 10; /* row */
} FIFO_DATA_R_T;
it turns out the the pixel_data is at address bits 31-24, but unused is at bits 16-18.
How should I construct the struct?
many many thanx!
|
|
|
|
|
Hi Lucy. MS compiler has the following specific feature: bit fields are laid out from the least significant bit to the most significant bit. So your struct should be like:
#pragma pack(1)
typedef struct
{
unsigned int pixel_y_address : 10;
unsigned int pixel_x_address : 10;
unsigned int direction : 1;
unsigned int unused : 3;
unsigned int pixel_data : 8;
}FIFO_DATA_R_T; This ordering is a compiler specific thing (Kernighan&Ritchie leaves it undefined, if my memory doesn't fail me).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
got it! Thank you so much!
|
|
|
|
|
c:\program files\microsoft visual studio\vc98\include\iostream.h(50) : error C2144: syntax error : missing ';' before type 'long'
c:\program files\microsoft visual studio\vc98\include\iostream.h(50) : error C2501: 'initialValue' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\iostream.h(50) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
i don't know y it tells me that there is some error with iostream.h class\
can any one tell me how to fix this please!
|
|
|
|
|
Most probably the problem has not to do with iostream.h file, but with the file #include d before it! Try swapping #include s to see what happens.
PS: IMHO it's advisable to have #include<iostream> instead of #include<iostream.h> : iostream (without the .h ) is the latest version of the iostream library according to the C++ standard.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
i tried but it is still not working
every time i click the error it takes me to the iostream class file
any ideas?
thanks
|
|
|
|
|
any ideas?
Yes, post the code
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
i got it fixed thanks a lot
JOAQUIN
you are the one man
|
|
|
|
|
I have a need to add controls to the Print Setup dialog.
I did this via what I thought was the standard means:
- Copied the Print Setup dialog (PRINTDLGORD) to my RC file
- Created a Class based on this new dialog
- Used this new class (CMyPrintDialog) in place of CPrintDialog
- Added controls to the new dialog
- Used the following code:
CMyPrintDialog PrintSetup( TRUE,
PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOPAGENUMS | PD_NONETWORKBUTTON |
PD_HIDEPRINTTOFILE | PD_NOSELECTION | PD_ENABLESETUPTEMPLATE );
PrintSetup.m_pd.hInstance = AfxGetInstanceHandle();
PrintSetup.m_pd.lpSetupTemplateName = MAKEINTRESOURCE( IDD_MY_PRINT_SETUP );
PrintSetup.DoModal();
All seems to work fine except entering text into a Edit Box on the new dialog appears to make the dialog repaint on each character. This is seem as:
- The Protrait/Landscape icon repaints each time a char is typed
- The cursor on the dialog repositions at the begining of the edit box on each char
- Takes a long time for each character and the hourglass appears.
I suspect I have left out a step.
Any suggestions?
AW
|
|
|
|
|
Two questions:
What ID did you use for the edit box; make sure you're not re-using the ID of a control used by the system.
Do you have an EN_UPDATE or EN_CHANGE handler for the control? If so, what actions are you performing in it?
farewell goodnight last one out turn out the lights Smashing Pumpkins, Tales of a Scorched Earth
|
|
|
|
|
Hey,
I would like to get started learning about DLLs. I currently only work in MFC and C++ using VC++ 6. Does anyone know of any good tutorials for using DLLs with MFC apps.
.NET or not .NET? MFC is the question......
|
|
|
|
|
Have a look at the MSDN samples DLLHUSK and DLLTRACE. They are fairly good starting points.
My jokes page
|
|
|
|
|
I wonder how it works. Let's say that I have a header file named MyHeader.h
then I want to use the #ifndef stuff... but how?
Like this(?):
#ifndef MYHEADER_H
...
#endif
if yes:
how does the compiler know that MYHEADER_H is my header... hmm... hope you understand..
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
#ifndef MYHEADER_H
#define MYHEADER_H
#endif This prevents a header's contents from being #included more than once.
--Mike--
"Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter."
-- Daniel Ferguson, 1/31/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
BUT OF COURSE!!
Thanks buddy(ies)!!!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
I want to scale a DIB into a window DC, and to do that I am using StretchDIBits - everything works fine. Because StretchDBits directly in the window DC is a very slow operation , I am trying to speed up the operation by stretching first into a mem DC and then draw the bitmap into the window DC using BitBlt. My problem is that StretchDIBits into the mem DC seems to have no result - nothing appears into the window DC. If I stretch directly everything works fine.
//
HBITMAP hBmp = ::CreateBitmap( /* ... */);
BITMAPINFO bmpInfo
// build bmp info
//original code
::StrectchDibits( hDC, /* ... */); //everything is OK
//updated code
HDC hMemDC = ::CreateCompatibleDC( hDC);
::StretchDBIits( hMemDc, /* ... */);
::BitBlt( hDC, /* ... */, hMemDC, /* ... /-*/); //!?
any help will be welcome ! Thanks .
|
|
|
|