|
See the VC forum FAQ (there's a link to it at the top of this page, too).
--Mike--
http://home.inreach.com/mdunn/
This posting is provided "as was" with no warranties, guarantees, lotteries, or any of those little bags of peanuts you get on planes. You assume all risk for crossing the street without holding mommy's hand. © 2001 Mike's Classy Software. Member FDIC. If rash develops, discontinue use.
your with and
|
|
|
|
|
- Thanks, Mike pal!
- Your reply clarifies my doubts.
- Regards,
Maer
|
|
|
|
|
the UUEncode email looks like
x-sender: seaboat@cmsland.com
x-receiver: cococut@cmsland.com
Received: from mail pickup service by webserver.landserver with Microsoft SMTPSVC;
Tue, 7 Aug 2001 09:16:15 +0800
From: "seaboat" <seaboat@cmsland.com>
To: <cococut@cmsland.com>
Cc:
Subject: good luck!
Date: Tue, 7 Aug 2001 09:16:13 +0800
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Message-ID: <webserver9xdcxobbcs00000001@webserver.landserver>
X-OriginalArrivalTime: 07 Aug 2001 01:16:15.0117 (UTC) FILETIME=[8DA6B3D0:01C11EDE]
hello ,baby!
begin 666 make.txt
zqrKssO0u+HKx9Xi0fnX07XEu7CjrMTRtcC+zcrH1eK49tH519O1xMLro7+/ycrHztK+zcrHsrvD97DXo6E=
end
but What the MIME *.eml looks like?
can you post me a MIME eml?
my email: cococut@mail.com
thans in advance!
|
|
|
|
|
A MIME email always has a header field that contains:
MIME-Version: 1.0 There are several other possible headers, and the structure of the message body depends on the headers. See RFC 2045 for the specification of MIME message structure.
|
|
|
|
|
I'm coding MFC application that supports external dll's. These additional dll's are depended from my main project. The problem arised when I'm trying to set breakpoint and run the debugging. VC determines invalid breakpoints in dll and runs from the beginning.
So, does anyone know how can I debug external dll's?
|
|
|
|
|
You have to set the dll as the active Project.. (if you have got more projects in your workspace..) (or open the Workspace of the dll)
if you debug the dll you can tell the compiler which exe should be run to test the dll -> Settings / Debug / Executable for Debug Session... the enviroment starts the exe and you can debug your dll.
hope this helps
Bernhard
""Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason."
|
|
|
|
|
* You have to set the DLL - Project as the active Projekt (or open the Workspace of the DLL - Project)
* Then you just start debugging (F5) (the first time you do this, the compiler will ask you which executable should be started for debugging this dll, later you can change this in the project settings / debug / executable for debug session )
hope this helps
bernhard
""Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason."
|
|
|
|
|
Hi all,
I am trying to update a record in an Access Database(I am new to DB programming and VC++), from everything I have read the following code should acheive the desired result but it gives a DB exception.
Have I missed a readonly flag or got something wrong in my database.open command???
Any pointers greatly appreciated,
Thanks in advance,
Tryhard
Code:-
CDatabase database;
CString sSql;
CString sDriver = "MICROSOFT ACCESS DRIVER (*.mdb)";
CString sDsn;
CString sFile = "d:\\Docs\\Wayne\\C\\Converse\\CDAT.mdb";
TRY
{
// Build the creation string for access without DSN
sSql.Format("ODBC;DRIVER={%s};DSN='';DBQ=%s",sDriver,sFile);
// Open the database
database.Open(NULL,false,false,sDsn);
// Allocate the recordset
CRecordset recset( &database );
// Update data
sSql = "UPDATE Convhist "
"SET GREETINGCOUNT = '1'"
"WHERE YOURFIRSTNAME = 'WAYNE'";
// Execute SQL Statement
database.ExecuteSQL(sSql);
// Close the database
database.Close();
}
CATCH(CDBException, e)
{
// If a database exception occured, show error msg
AfxMessageBox("Database error: "+e->m_strError);
}
END_CATCH;
}
Tryhard
|
|
|
|
|
Are you sure that your database could be opened? You are not checking the return value.
The rest of the code is fine, but there is no need for a CRecordset.
What does the error string say?
A vast majority of our imports comes from outside the country.
George W. Bush
|
|
|
|
|
I have VC++ Standard Edition and I am going to install it on Win XP how do I install it so that it supports creating unicode projects? Thanks.
-Matt Newman
-Matt Newman
|
|
|
|
|
Your choices are 1) Do a full install of MFC (the shared and static libraries for Unicode, as they're called) so the files are copied to your HD; or 2) do a default install and keep the VC CD in your drive. Setup will set the VC lib path to point at the LIB files on the CD.
In the end, though, you don't save space with #2, because when you apply a service pack, the LIBs can only go one place - your HD.
--Mike--
http://home.inreach.com/mdunn/
This posting is provided "as was" with no warranties, guarantees, lotteries, or any of those little bags of peanuts you get on planes. You assume all risk for crossing the street without holding mommy's hand. © 2001 Mike's Classy Software. Member FDIC. If rash develops, discontinue use.
your with and
|
|
|
|
|
How do I add unicode to a project (new or old) under new MFC AppWizard the only platform option is Win32. I am running XP on NTFS. I know I installed all the Unicode Libs.
-Matt Newman
-Matt Newman
|
|
|
|
|
Open your workspace and go Build->Configurations. Click Add and copy the settings from your Debug build, and call the new one Debug Unicode or something like that. Repeat for the Release Unicode config.
Once that's done, you'll have two new targets. Go to your project settings and for those two new targets, on the C++/General tab, change _MBCS to _UNICODE.
--Mike--
http://home.inreach.com/mdunn/
If there's something strange / in your VC code / Who you gonna call? / Ghostbusters!
your with and
|
|
|
|
|
Thanks. It is a lot easier than it seems.
-Matt Newman
-Matt Newman
|
|
|
|
|
I have a DIB where I need to access the pixel values so I can read and write to them. I have tried using CreateDIBSection but that doesn't seem to give me a pointer to the original image but rather an entirely new image. Is there some way to get create a pointer to the pixel data of the original DIB?
Please Help,
Clint
|
|
|
|
|
Is it a DIB or a DIBSection ? If the latter, just use GetObject.
DIBSECTION dib;
GetObject(hBitmap, sizeof(DIBSECTION), dib);
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
What I have is a DIB that I get back from a third party DLL. It takes a raw buffer, decompresses it and sends back a 24-bit dib. I want to be able to now go in and access the original bits so I can modify them ( sharpen/ motion detection) as quickly as possible. Then draw them on the screen quickly afterwards.
Please Help,
Clint
|
|
|
|
|
see the MSDN for BITMAPINFOHEADER . you have to understand how DIBs are setup, in order for you to be able to get at the pixels.
here it is in a nutshell:
a 24 bit DIB (one of the simplest of the DIBs) is usually a chunk of memory that starts with a BITMAPINFOHEADER structure. immediately after that struct are the pixel bytes.
pixel rows are generally stored in a bottom-up order, so the first pixel byte is the bottom-left pixel. (top-down DIBs have a negative height).
pixel rows are always a multiple of four bytes wide; they have padding bytes at the end, if necessary, to make the total number of row bytes equal to a multiple of four.
pixels are stored BGRBGRBGR... (Blue, Green, Red). three pixels per byte, no padding between pixels (except at row ends, when necessary).
-c
http://www.smalleranimals.com
|
|
|
|
|
I know some programs automatically start when the Windows OS is launched, but they are not in the Startup menu. The best I've been able to figure out so far is that it is a registry addition you must make to load your program. Where should I be looking for more information about this?
Thanks,
-Jason
|
|
|
|
|
There's two - Run and RunOnce ( which runs the program then deletes the entry ). I dunno where they are, I always find them by searching for 'RunOnce'.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
Put it in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run if you want it for all users
Nish
|
|
|
|
|
Hello. Thanks for responding so quickly. I've got a followup question:
<br>
CRegKey key;
<br>
key.Open(HKEY_LOCAL_MACHINE, "\\Software\\Microsoft\\Windows\\CurrentVersion\\Run");
key.SetKeyValue("Igloo", "foo");
key.Close();
This tends to ASSERT. Do you immediately spot anything wrong with the method I'm using to add a Name "Igloo" and a value "foo" (which will be the program's filespec.)
-Jason
|
|
|
|
|
I'd say the \\Software\\... should be just Software\\.....
A vast majority of our imports comes from outside the country.
George W. Bush
|
|
|
|
|
In Win2000 in the control panel there is Scheduled Tasks. You can set this up there. It may just make the registery entry for you... but it is easy.
|
|
|
|