|
Hi,
Thanks for your reply...
If I tried this application the VS2005 machine it is working fine.
But when only .net2.0 framework I got the visual c++ runtime library pop-up error
I tried the following as suggested by you:
1. I have installled the redistributable package suggested by you.
after installing i restarted the PC even now also I got the same runtime pop-up error.
2. Then I checked even with the dependency walker for the dll.
I found that there is no miising dll.
3. Then I tried by installing Visual C++ express edition..even then also i got the same pop-up error.
Kindly help me.....
|
|
|
|
|
Again I must be say one thing requests marked as 'urgent' will be send to Pallini's site. 
|
|
|
|
|
please guide content structural file SCS. Spoolfile for Iseries.
eg:
1
-
-
0 RICHARD ALLEN 1234567 2/14/07
-
-
-
- You certify that:
0 A) You have purchased extended reporting coverage from your
previous carrier; or
0 B) You have decided not to purchase such extended reporting
coverage knowing that you are uninsured for your past medical
professional services; or
0 C) You are aware of your option to purchase suchextended
reporting coverage and realize that there is a time limit on
the purchase; or
0 D) You were insured for your past medical professional services
under an occurance policy.
0 Exclusion: We will not cover claims resulting from medical
professional services provided or withheld prior to your
retroactive date.
|
|
|
|
|
Dear,
expart
I have a digital ink pad (G - Note 7000 of genius). How I interact with the pad when it connected to a pc(i have the driver soft ware).I am writing a MFC application which can do this, but i do this by mouse interact, so the the resolution of the pad scale to the monitor resolution. I want to the same resulution as the pad so that I can get the same ink as it give in off line mode.
please help me how to do this.
tanmay
|
|
|
|
|
Hi All
Ho can i edit ragistry values in vista?I have regkey this
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR and Start default values is 3 ,no i want to chage it values 3 to 4.So how can i do this code.Plz help me
|
|
|
|
|
i am useing code but no affect in regedit values.
HKEY hKey;
DWORD dwDisp = 0;
LPDWORD lpdwDisp = &dwDisp;
CString l_strExampleKey = "SYSTEM\\CurrentControlSet\\Services\\USBSTOR";
CString l_strDWordSample = "Start";
DWORD dwVal = 4;
LONG iSuccess = RegOpenKeyEx (HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Services\\USBSTOR", 0L, KEY_READ , &hKey);
if(iSuccess == ERROR_SUCCESS)
{
RegSetValueEx (hKey, l_strDWordSample, 0L, REG_DWORD,(CONST BYTE*) &dwVal, sizeof(DWORD));
}
RegCloseKey(hKey);
Plz help me
|
|
|
|
|
What was return value of your code?
|
|
|
|
|
MsmVc wrote: if(iSuccess == ERROR_SUCCESS)
{
RegSetValueEx (hKey, l_strDWordSample, 0L, REG_DWORD,(CONST BYTE*) &dwVal, sizeof(DWORD));
}
If RegSetValueEx fails, you can find out why by calling FormatMessage() with the FORMAT_MESSAGE_FROM_SYSTEM flag.
This is an undocumented secret.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Thanks for helping . Now it's working..It's my mistake.
|
|
|
|
|
|
We aim to please.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: We aim to please.
And pleasant it was.
Made my face turned into something that resembles a smile...
Also brought up the score for what it's worth...
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks for the vote, Roger. Glad you liked the pun.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
hi i have class
<br />
class abc<br />
{<br />
public:<br />
abc()<br />
{<br />
}<br />
void disp()<br />
{<br />
}<br />
};<br />
int main()<br />
{<br />
abc *c = 0;<br />
c->disp();<br />
return 0;<br />
}<br />
here for c is memory allocated. and can i access class methods from c.
|
|
|
|
|
manjunath k reddy wrote: here for c is memory allocated. and can i access class methods from c.
No..
BTW Why you want to do it?
Regards,
Sandip.
|
|
|
|
|
i have to nothing but only i wanted to know weather we can access class functions like this is it possible.
|
|
|
|
|
No. You didn't create any instance of the object and you try to access a NULL pointer, thus this will crash. You have to create an instance either with new or this way: MyClass a; .
Anyway, this is really the basics so before going any further, I suggest you read a good book on C++.
|
|
|
|
|
Just as a thought, if you need to access the member functions before creating an instance of the class you could define the function as static . That way if you needed to call the function, you could write abc::function();. Just realize that any member variables that the function needs will also have be declared static and at this point, you might as well not wrap the function in a class at all because it is sort of pointless. However, it is possible.
|
|
|
|
|
Even though it is not a standard way, such function calls are possible if the function disp() is not accessing any of the member variable of class abc. If it is accessing any member variable inside it, the execption will occur at that point.
But the point is, if we didnt access a member variable in a member function of the class, why make it member function...?Static or global is enough..
|
|
|
|
|
Naveen wrote: such function calls are possible if the function disp() is not accessing any of the member variable of class abc
You need to put one more requirement on that Naveen: it cannot be a virtual function since the virtual table goes with the instance of the object.
But, as you said, it serves no point making it a member function even though it will compile and run. It would be extremely poor design.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: it cannot be a virtual function since the virtual table goes with the instance of the object
Ya you are correct. thanks for pointing...
|
|
|
|
|
manjunath k reddy wrote:
class abc
{
public:
abc()
{
}
void disp()
{
}
};
int main()
{
abc *c = 0;
c->disp();
return 0;
} here for c is memory allocated. and can i access class methods from c.
No!
There is no memory allocated for 'c'. The variable 'c' is a pointer to an object of 'abc'-type and you've assigned NULL to that pointer.
If you will try to execute the code above you will get a runtime error saying "access violation" in your face.
The question you're asking, for the second time(!) even though you've already got an answer, makes no sense.
It suggests that you have no clue about the concept of object oriented analysis/design/programming.
Consider the following analogy:
- "I want to change tyres on my car. How do I do that?"
- "What kind of car do you have?"
- "I don't have a car."
- "????"
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
100% you will be get error wheres your memory allocated for c in this code you have a pointer without any instance of object and you want to use of a null pointer?
|
|
|
|
|
|
You've posted a similar question before and my answer is similar to the already given one:
You really need a good C++ tutorial.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|