|
|
hi,
yah , i have seen this , after making backup from NTBackup utility on tape drive , i can successfully restore the data , but i m facing problem in writing on tape drive , and writting according to MTF is really getting hectic for me ... plz reply...
"I only fail when i give up "
|
|
|
|
|
if listbox shows the path of a jpeg file, how can i open this jpeg file form a 32x32pixels picture on the front of row?
which lib should i use?
|
|
|
|
|
|
library GDI+
class Graphics
class Bitmap
see in MSDN
|
|
|
|
|
i dont find any reason for this error. my application was working fine. but it started behaving like a b****t. when ever i close it, it throws
"QACD Application has encountered a problem and needs to close. We are sorry for the inconvenience." exception 4 times.
this happens only upon closing the Dialog. what could be the matter?
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
|
|
|
|
|
VivekuniQ wrote: this happens only upon closing the Dialog. what could be the matter?
Are you freeing all the allocated resources ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
its again working fine!! i didn't do any change to it. 's going on
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
-- modified at 10:52 Monday 19th December, 2005
|
|
|
|
|
I have the strangest problem. A project I'm working on contains several classes. Some of the classes were previously a part of a library that I was linking with, but to make it easier to debug I moved the code to the project. The strange thing is that every time I call new (or call a function that calls new) inside these classes, new fails to allocate memory. However, other classes in the same project have no problem calling new. When stepping into the code, the culprit is the line where new calls malloc( ), since malloc( ) returns NULL. Has anyone experienced a similar problem?
Regards,
Daníel
|
|
|
|
|
Nevermind, this was because there were different versions of the .h file for the class in question, which meant that the class thought it occupied more memory than it really did..
|
|
|
|
|
Hi,
How can i post a message from a Dialog to a Doc/View CCtrlList object (View2) with 3 Views (Using the CSplitter) at total ?
Using the GetParent()->PostMessage(...) does not work ? No errors but can not receive the message.
Any suggestions ? Is there any way to have direct access to the main View's CListCtrl from a dialog ?
Regards,
sdancer75
|
|
|
|
|
If the view is creating the dialog the simplest way would be to pass a pointer to the list control to the constructor (or have a setter) but it might be better to get the active document, change it then tell it to update all views.
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
Hi,
Is there any way to write to the different Tabs of a CProperySheet without activate it using the SetActivePage ?
If i try to write directly without activation i get an Assertion Error.
On my onInitDialog i initialize the control with the following code
CPropertySheet m_Sheet;
CBookSheetBasic m_SheetBasic;
CBookSheetDetails m_SheetDetails;
m_Sheet.AddPage (&m_SheetBasic);
m_Sheet.AddPage (&m_SheetDetails);
m_Sheet.Create (this, WS_TABSTOP | WS_CHILD | WS_VISIBLE,WS_EX_CONTROLPARENT);
m_Sheet.SetWindowPos (NULL,0,100, 0,0,SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE);
When I try to fill the all the objects from all tabs i have to use the m_Sheet.SetActivePage causing a little flickering.
The filliing process is including the following code :
m_Sheet.SetActivePage (&m_SheetBasic);
m_SheetBasic.m_cbLanguage.ResetContent ();
m_Sheet.SetActivePage (&m_SheetDetails);
m_SheetDetails.m_cbOriginalLanguage.ResetContent ();
m_SheetDetails.m_cbOriginalPublishHouse.ResetContent ();
m_SheetDetails.m_cbCover.ResetContent ();
Regards,
sdancer75
|
|
|
|
|
Hope this will help...
http://www.codeproject.com/property/hacking_the_cpropertyshee.asp[^]
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="30" scrolldelay="1" step="1" scrollamount="1" hspace="0" vspace="0">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Whenever i debug a dll thru the main application the execution is not coming to the break point inside the dll and whenever i press shift+F5 it is showing "Preloaded symbols may not match .dll."
Please tell me what is happening.
Thanks in advance,
John
|
|
|
|
|
|
Hello,
Are you using Visual Studio 2005 Standard or Express edition perhaps? I have the same problem. I think that it is a missing feature in the standard edition, since the professional edition and higher support this. Others say that it might be a bug.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello,
i would like to have a class with a shared pointer to some data. Data can be constructed with a structure astructure.
So far the compiler is crashing, as soon as I try to access m_data.
How do I have to implement this with using shared_ptr, or am I misusing the shared_ptr anyways ?
Class1
{
boost::shared_ptr<Data> m_data;
public:
Class1();
Class1(const astructure& source)
Class1(const class1& source)
}
Class1::Class1 (const astructure& source)
{
m_data.reset (new Data(astructure.m1, astructure.m2));
}
Class1::Class1 (const Class1& source)
{
m_data = source.m_data;
}
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
-- modified at 3:51 Monday 19th December, 2005
|
|
|
|
|
Im trying to make a program that does system wide keyboard hook. This program consist of two parts, and those are:
1. a DLL which consist of three functions: InstallHook, HookProc (the hook procedure), and RemoveHook.
2. an EXE which will load the DLL and uses/calls all the functions
what the program does is, everytime there's an input from the keyobard it will pop up a messagebox saying "whoa!".
the problem is that this program only monitors keystrokes on it's own thread. when the program loses focus, it will not be able to detect keystrokes and output the "whoa!" message anymore.
just my thought, i think the problem lies within my installhook function within the DLL, because im not really sure how to fill the third and fourth parameters (msdn kinda confuses me)
[code]
SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC) HookProc, GetModuleHandle(NULL), 0);
[/code]
this is the full source code of the program.
DLL source : http://pastebin.com/468968
Exe Source : http://pastebin.com/468969
This problem really confuses me since there are no error displayed on the compiler, and the program just looks fine without crash or anything.
Thank you very much for your time and help.
- Ganeshwara
-- modified at 3:40 Monday 19th December, 2005
|
|
|
|
|
I believe you need to pass the HMODULE for the dll, not the exe, which is what GetModuleHandle(NULL) returns. Use something like GetModuleHandle("nameofdll.dll").
|
|
|
|
|
yes, thank you very much it has resolved!
i thought since the function resides inside dll it will get the handle of the dll. i spent a few days troubleshooting this problem, thank you very much!
|
|
|
|
|
Hi all,
I have to create a win 32 dll which is loaded by two different processes. MSDN tells me that the dll is mapped to the process space of the calling exe and so there would be two instances of the dll running. The problem is that the dll which I have to create keeps doing some processing on a hardware board. Does it mean that both instances of my dll will keep on doing these operations parallely on the board? If this is the case then I need to make sure only one instance of the dll runs on the system, no matter how many processes load it. Any pointers in this direction and how to create a single shared instance of dll will be very helpful.
|
|
|
|
|
|
We see the very common MFC as shared dll option in our projects. Does this option mean than only one instance of the MFC dll would be running on the system? What happens behind when create a MFC shared dll?Can I use the same technique to create a shared dll?
Thanks in advance. Your responses are truly appreciated..
|
|
|
|
|
misha_grewal wrote: Does this option mean than only one instance of the MFC dll would be running on the system? What happens behind when create a MFC shared dll
Yes there be only one Instance loaded in memory, and every function has it address, using which we can make the call to the function!.
misha_grewal wrote: What happens behind when create a MFC shared dll
there is lot of difference between shared MFC DLL and Dll you are creating... actually your problem is syncronization not sharing... actually here Shared mean that Application will use MFC dll previously loaded OS.. and BTW I believe MFC dll itself use Syncronization technique like Mutex,events etc
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|