|
try handling SC_CLOSE from OnSysCommand.
Note: there can be a better solution for this.
suhredayan There is no spoon.
|
|
|
|
|
hi all
i am working on a display stuff...i basically want all the display modes present in the registry to be enabled in rightclik/properties/setting...
Is there any thing to be changed in the registry...bcoz this stuff can be done in win2k by enabling the pruning mode key in the regisry.........
thnx in advance
udaykumar
|
|
|
|
|
HI,
There is Problem in Printing a Page with HP laser jet. Using VC++
The message says something like "Header not Printed".
A printer that is an ink jet does print out the entire model. But HP laserjet 5MP does not.
Reply me plz . Its an urgent.
thanx
Regards.
|
|
|
|
|
I made a COM dll and it registers on my computer and works allright, but i can't register it on another machine. When i write regsvr32 mycom.dll it says that loadlibrary("...") can't load module, or something like this. I had this problem before, and someone advised me to check my dll with dependency walker, and find out wich dll it requires. But i didn't solve this problem, a copied all the dlls with my dll, and tried to register them , but my dll still didn't want to register itself!!! And by the way, i lost my dependency walker, where can i find it?. Does anybody know other way to solve this problem???
|
|
|
|
|
HI mr Rassul!
you will find your new dependency walker here[^]
could you tell me from where, Are you using regsvr32 , from CMD line or through coding . have you checked the path for your mycom.dll is correct ,i.e.
c:\>regsvr32 c:\cp\mycom.dll
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Thanks for dependency walker, i used the regsvr32 from command line, and i found the problem. My dll need ActiveSync installed on the computer.
|
|
|
|
|
Hi Alok I answered to a thread but now I saw this thread do you know why?
|
|
|
|
|
Can I replece a dll dynamically when it is loaded and how? Please, Can anyone tell me how it can be done?
Thanks
objamit
|
|
|
|
|
are you using LoadLibaray() load DLL.
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Have you looked at MoveFileEx(..., MOVEFILE_DELAY_UNTIL_REBOOT) ? There's also the VerFindFile() /VerInstallFile() pair.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi
I tried ShellExecute as suhredayan told me. This works if i use it to open my required webpage. But it is not working for any file operation such as open, edit, print. Please tell me why this is happening. I am working in LAN environment and that file is also on a network drive. Can this situation effect function of ShellExecute.
We Believe in Excellence
|
|
|
|
|
Show us the code snippet that does not work.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello,
I have a DLL project that I am debugging that is called from an application that I dont have the project for.
I can set breakpoints and debug the dll when it is called, and all that is working fine.
However, what I would like to be able to do is have Visual Studio automatically break whenever code execution enters the dll, no matter what function is called.
Is this possible? This way I can learn quicker what functions are called in the DLL and when. (I didn't write the source code to the application or the DLL and they are large projects.)
Thank you.
|
|
|
|
|
Does anyone remember what option to pass into the MSDEV.exe so that when you build in the IDE it outputs the build time? I can't remember what it is, but I know that it exists because I used to have it working, Googling hasn't been fruitful so far.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|
|
For msdev.exe, you can type /? at a command prompt for help. For cl.exe, you can type /help at a command prompt for help.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Yeah that was the first thing I tried, unfortunately I believe this argument is not documented.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|
|
I added a post build step to do this:
date /t
time /t
|
|
|
|
|
I was trying to do this really simply program where I had to compute the net pay for an employee. The user should be asked for the gross pay. Then next, I had to calculate the federal tax as 25% of the gross pay, calculate the netpay, and output the calculations. Below I have what I did, I tried to run it, but it wouldn't, what did I do wrong? If someone has time, just let me know how I can improve it.
//Ch3Payroll.cpp- calculates and displays the net pay
//Created/revised by Jonathan Atkins on February 7, 2004
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main ()
{
//declare variables
double wageRate = 0.0;
double numberofHours = 0.0;
double grossPay = 0.0;
double federalTax = 0.0;
double netPay = 0.0
//enter input item
cout << "Enter wage rate: ";
cin >> wageRate;
cout << "Enter number of hours: ";
cin >> numberofHours;
cout << "Enter federal tax: ";
cin >> federalTax;
//calculate gross pay, federal tax, and net pay
grossPay = wageRate * numberofHours;
federalTax = grossPay * .25
netPay = grossPay - federalTax
//display output item
cout << "Gross pay: " << grossPay << endl;
cout << "Net pay: " << netPay << endl;
return 0;
} //end of main function
Jonathan
|
|
|
|
|
You are missing semicolons after the following lines
federalTax = grossPay * .25
netPay = grossPay - federalTax
|
|
|
|
|
Thank you so much, I don't know how I made such a dumb error.
Jonathan
|
|
|
|
|
hey guys, i'm pretty new to C++ and have a program i'm trying to write. i basically have the .h file done except for the private data members. the project instructions are below as well as what i have of the .h file. i'm sure you guys probably think this is easy but if anyone can do it so atleast i have something to refer to i'd aprecitae it. thanks
Your job is to implement and test this ADT using an array allocated with the new operator in the constructors and de-allocated with the delete [] operator in the destructor. You will find that three data members will be sufficient for the job. At a minimum, you must test each function with enough different arguments to show it works.
You are allowed to define additional helper functions, member functions or otherwise
//---------------------------------------------------------------------------
#ifndef MyStringH
#define MyStringH
//---------------------------------------------------------------------------
typedef char CharType; // Allow for other character types
class String
{
public:
// Constructors and Destructor
String( int capacity = 50 ); // Make empty String with given capacity
String( const String & str ); // Copy str
String( const CharType * str, int capacity = 50 ); // Make str a String
~String();
// Queries
unsigned Length() const { return count_; }
bool IsEmpty() const { return (count_ == 0); }
bool IsFull() const { return count_ == capacity_; }
int IndexOf( const String & str );
String SubString( unsigned start, unsigned count ) const; // Copy out
const CharType * c_str() const;
// Modifiers
CharType & operator[]( int index ) { return string_[index]; } // Unsafe
bool Delete( unsigned start, unsigned count );
bool Insert( unsigned pos, const String & str );
private:
I NEED THE PRIVATE DATA MEMBERS FOR HERE
};
//---------------------------------------------------------------------------
#endif
thanks again
|
|
|
|
|
Will Try to help you out.
Luckyhuss
|
|
|
|
|
homework ?!
do it your self !!!
we are here to help, no to do your job...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You are allowed to define additional helper functions, member functions or otherwise ;);P
|
|
|
|
|
I'm using _spawnl to launch an external application. This works very well. But when I call _spawnl from within a thread created with AfxBeginThread, the program crashes.
What's the catch here?
using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]
|
|
|
|