|
M.Shoaib Khan wrote:
thanks to software piracy!! I bought VS.NET 2003 enterprise for just $5
And thanks to crooks like you, software prices stay inflated in order to pay for efforts to counter software piracy.
Sometimes I wonder why I bother .....
Chris Meech
It's much easier to get rich telling people what they want to hear. Christopher Duncan
I can't help getting older, but I refuse to grow up. Roger Wright
I've been meaning to change my sig. Thanks! Alvaro Mendez
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
|
|
|
|
|
Chris Meech wrote:
And thanks to crooks like you..
Excuse me!! i am not a dishonest person...
its not my responsibility... YOU WONT BE ABLE TO FIND LICENSED COPY OF ANY SOFTWARE IN PAKISTAN EASILY (MAY BE THEY ARE AVAILABLE) BUT I HAVENT SEEN ANY SINGLE SUCH SHOP OVER HERE..
its responsibility of software vendor to provide licensed software in easy approach.. not mine to search for a licensed version of CD in my part of world. and btw there are NO SOFTWARE LAWS in Pakistan as yet (coming in few years).. so its legal. huh
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
M.Shoaib Khan wrote:
... thanks to software piracy!! I bought VS.NET 2003 enterprise for just $5 + i have never bought any software > $5
... Excuse me!! i am not a dishonest person...
You admit purchasing stolen software and then claim to be an honest person. Your twisted logic escapes me.
Chris Meech
It's much easier to get rich telling people what they want to hear. Christopher Duncan
I can't help getting older, but I refuse to grow up. Roger Wright
I've been meaning to change my sig. Thanks! Alvaro Mendez
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
|
|
|
|
|
The 2002 Professional product includes the optimizing compiler. The non-optimizing compiler is only shipped with the "Standard" edition, and the .NET Framework SDK.
Same for 2003 versions - "Professional" is what you need.
Which options are greyed out? What type of application are you building (.NET, Windows, .exe, .dll, etc.?)
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
One other thing - at the command line you can determine if you have the optimizing or non optimizing compiler -- just type cl /? to see the banner. Mine reports:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3052 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
My bad... Yes, it is the "standard" version unfortunately.
Microsoft (R) 32-bit C/C++ Standard Compiler Version 13.00.9466 for 80x86
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
Dern it!!
BTW, notice the d!psh!t bragging about piracy? What does she expect us to say?? Congratulations thief?!?
Probably a poor driver too who doesn't realize that her accidents raise the insurance rates for EVERYONE...
|
|
|
|
|
// Load Process
HANDLE hBitmap;
hBitmap = ::LoadImage( GetModuleHandle( rvl_null ), pathFileName, IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE | LR_LOADFROMFILE );
m_pBitmaps[ i ].Attach( hBitmap ); // m_pBitmaps is an array of CBitmap
//////////////////////
CStatic* pImageCtrl = rvl_null;
pImageCtrl = ( CStatic* ) GetDlgItem( IDC_NEWMAP_DIALOG_IMAGE );
pImageCtrl->SetBitmap( HBITMAP( m_pBitmaps[ 0 ] ) );
I'm using this piece of code to place a bitmap inside a static control but it's not working as it should. What i'm doing wrong ?
PS: Bitmaps are loaded from file.
Thanks
|
|
|
|
|
You should pick Bitmap Type in Picture properties.
Hello World!
|
|
|
|
|
I didnt choose to enable print support when I created my project but now want to add it. Is it possible at this late stage or do I recreate from the start?
Thanks,
ns
|
|
|
|
|
You can add the necessary code at any point, but I would recommend creating a temporary project with AppWizard and copy the necessary code over to your current project. That way it will look like AppWizard created it from the start.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
thanks. I guess I will have to windiff the files in the projects and see what gets added on....
|
|
|
|
|
I've been looking around for a good tutorial on the basics of building a screen saver in C++ and without MFC.
I already have my EXE built; I just need to know how to make it work as an SCR. I know it needs to run in different modes like configure, test, preview, etc, but I don't know how to do this.
If anyone can point me to a good (or even semi-good) tutorial on this I would greatly appreciate it.
Thanks for your time.
-Cactus Joe
|
|
|
|
|
MSDN samples contains full implementation of a screen saver.
Programming is an art not a skill, every one can be a skilled programmer but not an artist.
|
|
|
|
|
*Smacks forehead*
Why did I not check there in first place...?
Thanks!
|
|
|
|
|
I want to know how can I write a program based on Dialog Application, when it display another dialog, the dialog will fit the based dialog just like SDI/MDI's new files fitting in their parent window???
|
|
|
|
|
You want something like...
BOOL CMyPopupDlg::OnInitDialog ()
{
...
CWnd *pParent = GetParent ();
if (pParent)
{
CRect rc;
pParent->GetWindowRect (&rc);
SetWindowPos (NULL, rc.left, rc.top, rc.Width (), rc.Height (), SWP_NOZORDER);
}
...
return CDialog::OnInitDialog ();
}
I hope that helps,
Iain.
|
|
|
|
|
i guess setting the child windows with WS_CHILD style will do the trick, didnt test it, but i guess thats what it is.
Programming is an art not a skill, every one can be a skilled programmer but not an artist.
|
|
|
|
|
Hi all,
I want to distribute my applications to others, but at the same time i want to make sure that it will run for the say N Days only. Can anyone give any direction to start. My application is Win32 Application and i am using MSVC 6.0
Thanks in advance.
AL
|
|
|
|
|
Producing something that can't be fooled by e.g. setting the machine date back to the day of the instalation is very hard.
Makeing a solution that is not diabled by harddisk imageing/restore is almost impossible.
But if thats OK for you, the best thing is to finde a hidden quiet spot in the registry, write some encrypted timestamp there and check at startup if you are more than N days later.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
In addition to jhwurmbach's suggestion, I would suggest making the registry key something not obvious. In other words, don't make it something InstallationDate, or DateOfExpire! Give it a name that has absolutely nothing to do with an expiring date.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hi jhwurmbach abd David,
Thanks for suggestion.David can you elobrate future on how I can create the key which had nothing to do expiring date.
Again Thanks in advance
AL
|
|
|
|
|
Abhi Lahare wrote:
David can you elobrate future on how I can create the key which had nothing to do expiring date
Simple: As the name of the Key use a GUID (made by Guidgen.exe). In that keys value you can store the installation (or expiration) date. Probably as an integer, not a date-string.
Hope that helps
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I have read that a pointer has no relavence outside the process. What does this mean exactly. Can anyone explain this ..please. Also what about the far dont they refer to outside the process .... kindly explain.
Thank you.
|
|
|
|
|
You can use the analogy of a memory address being a phone number - where each process is equivalent to an area code.
If you call a number from the same area code you will get the person you expect. If you use a pointer withing your process you will get the data you expect...but if you use a phone number from a different area code you will get a wrong number and if you use a pointer from a different process you will get a wrong address which usually results in a program crash.
If you want to access another process' memory use the API call ReadProcessmemory which is equivalent (in the above tortured analogy) to adding the area code to the phone number.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Each process has its own virtual memory space. Simply, this means your processes pointer (0x1000) will
point to a different bit of silicon than the same pointer in a different process. This makes your
life simpler and allows for security (you have to work hard to damage another process, and vice versa).
The far keyword was used in 16bit windows to indicate a 32 bit pointer, with some other fancy bits.
It is completely obsolete in 32 bit machine. I imagine the compiler just pretends you hadn't typed
it.
Iain.
|
|
|
|