|
Hi,
I have come across the concept of Registry Hives in windows. Windows loads the registry hive for a particular user based on his SID under the HKEY_USERS registry entry. What I would like to know is that for some of the users I've seen more than one SID entries under the HKEY_USERS, why is that? For one user there should be only two entries .DEFAULT and the key relating to the SID of that particular user. Why does that happen?
Can anybody clarify this please.
Thanks,
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
Can i create singledocument template in regular dll.and use it in exe
gucy
|
|
|
|
|
Hi,
I am facing problem in CTreeCtrl.
I want to control the horizontal Scrollbar appear in the CTreeCtrl after the line node exceeds its visible length.
What I need is the prefered method to make the horizontal scrollbar disappear.
have a nice day;
The Phantom
|
|
|
|
|
GetCommandLine() returns a string enclosed in quotation marks. So the first question is why? Let's call this string strCmdLine .
Since I had no idea that strCmdLine was enclosed in quotations marks, I would just extract the path of the executable by adding a null character at the location of the very last '\' occurence. So if my path was "c:\\apps\\myapp\\myapp.exe" I would convert the string to "c:\\apps\\myapp\0. As you can see there is a quotation mark at the begining of the string. Calling SetCurrentDirectory() would work just fine in Windows XP but it doesn't work in Windows 98. I fixed the problem by removing the leading quotation mark but I am puzzled as why would this work in XP and not in 98? This should not work at all. I don't know if it works in other windows versions.
// Afterall, I realized that even my comment lines have bugs
|
|
|
|
|
Toni78 wrote:
Calling SetCurrentDirectory() would work just fine in Windows XP but it doesn't work in Windows 98.
What error is returned by GetLastError()? Can you provide a code snippet?
|
|
|
|
|
Sorry, I forgot about that, it returns error 3, path not found.
// Afterall, I realized that even my comment lines have bugs
|
|
|
|
|
hi all,
i have 2 classes A, B in VC++. they need to refer each others to form a composite relation. so, i include "a.h" in "b.h" and "b.h" in "a.h". however, compiler prompt me redefined. i have found a solution to make a virtual class in each other header like this
// in a.h
class a;
class b
{
// ...
// ...
}
// in b.h
class b;
class a
{
// ...
// ...
}
indeed, i don't sure why it work and it seems not a good solution.
any help or comments?
thanks,
jim
|
|
|
|
|
zecodela wrote:
indeed, i don't sure why it work and it seems not a good solution.
It's the best solution . You're not making "virtual" classes. You're simply telling the compiler that a class with that name exists and is defined elsewhere. In this situation, it's the only possible situation.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
zecodela wrote:
it seems not a good solution
Why would you think this is not a good solution? As Ryan said this is the only and the best solution.
// Afterall, I realized that even my comment lines have bugs
|
|
|
|
|
i heard some kind of solutions like
#if
#define
OR
using extern
just want to know whether they are possible in my case or not!
thanks!
jim
|
|
|
|
|
There could be cases (that I am not aware of) where you can use #if and #define but these preprocessor directives are used with constants.
"The extern keyword declares a variable or function and specifies that it has external linkage (its name is visible from files other than the one in which it's defined). When modifying a variable, extern specifies that the variable has static duration (it is allocated when the program begins and deallocated when the program ends). The variable or function may be defined in another source file, or later in the same file...(MSDN)". (You are not declaring variables or functions. You are defining classes.)
All you are doing in your code is making the compiler believe that the class exists, and then later you define that class somewhere else. There is nothing wrong with that and again as Ryan said that is the only solution. What you are doing is perfectly acceptable.
// Afterall, I realized that even my comment lines have bugs
|
|
|
|
|
Hi,
Can I save a video recording to a file and at the same time playback the file?
Can this be done using DirectShow?
Anyone tried this b4?
|
|
|
|
|
It can be done.
Try using an Infinite Tee filter to send streams to multiple renderers. It's worth prototyping the exact layout of the filters in GraphEdit to check that everything is going to work before you start coding.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Does anyone know of a function that will take 2 strings and show you the differences between them? Example:
"It takes a big man to cry, but it takes a bigger man to laugh at that man."
compared to
"It takes a large man to cry, but it takes an even larger man to laugh at that man."
would output something like
"It takes a -[big]- man to cry, but it takes -[a bigger]- man to laugh at that man."
I just don't want to reinvent the wheel here if there is something already tested and proven out there.
Thanks,
Jack
There are 10 types of people in this world, those that understand binary and those who don't.
|
|
|
|
|
I am new to this, so excuse me if I sound ignorant ...
How can DSR signal be asserted/deasserted on serial port programmatically using Win32 API's? I know that EscapeCommFunction() can be used to assert/deassert DTR... Does asserting DTR implicitly deassert DSR? Is this how DSR state is toggled?
Thanks,
Ruchika
|
|
|
|
|
RuchikaDhingra wrote:
How can DSR signal be asserted/deasserted on serial port programmatically using Win32 API's?
You can't. DSR and CTS are controlled by the device attached to the COM port. The PC has no control over them at all. You can only control the state of DTR and RTS.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi all,
I am having some troubles. I need to preview or print a pregenerated report
in ACCESS2002 directly from out of a VC++ program (using Visual developer 6.0).
Does anybody have a clue how to accomplish this astonishing feat ??
thx !
|
|
|
|
|
OLE Automation.
onwards and upwards...
|
|
|
|
|
OLE Automation,.. can you give a clue on which component i need to install then ? If i look in the active x addable components, i don't find any "ole automation" component, Just an OleInstall class component..
Thx for the reply by the way! much appreciated..
|
|
|
|
|
When I draw text in DirectX using DrawText, capital W's at the left edge of the text have the upper left pixels mysteriously cropped off. Has anyone else encountered this, who knows of a fix? I'm at Wit's End.
Dave Goodman
dgoodman@infoway.com
www.dkgoodman.com
"Actio sequitur esse."
|
|
|
|
|
Is this with ID3DXFont or CD3DFont (or something based on it)? I've seen this problem with ID3DXFont; it seems that when it draws the text using certain fonts, the kerning bumps the W just out of the texture. Try inserting a space before the W maybe?
I'm using a custom derivative of CD3DFont that decouples the font texture from the renderer, and lets me fiddle with the U,V coords for the characters (and "bake in" stuff like drop shadows). It's not as convenient as ID3DXFont and doesn't support Unicode, but it's a lot more flexible for playing with
- Mike
|
|
|
|
|
This will probably be an easy question for most people, but I'm still somewhat new using the visual studios, and I haven't had much luck researching scrollbars. I am not trying to use a scrollbar to control my main dialog, which is what most articles refer to. I am trying to put a scroll bar in the middle of a dialog that will manipulate a separate control. Basically, I don't know how to wire up my scroll bar after I've added it to my dialog, and there isn't an easy way to add a message handler. If this is just a message map solution, could you please show me a small example with your answer? Thanks a ton!! ;)
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|
|
Handle WM_VSCROLL or WM_HSCROLL, depending on which direction your scroll bar goes. The last parameter has a pointer to the scroll bar that is sending the message.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Any tools out there for simplifying touch screen application development. Specifically, an onscreen keyboard which is "attached" to an existing CEdit control would be great. Otherwise, I'll have to roll my own.
Thanks!
|
|
|
|
|
Hi,
When you create a splitter window there are some bars between the views. You can use there bars to redimension the views. Is there a way to hide these bars? So that the views will appear as one single view...
Thanks
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|