|
Hi,
Can anyone answer the following question or at least tell me where I can find the answer ?
When you install VB, Visual studio, Ms word etc... and you have a PC with multiple registries (say one for stand-alone use/login and one for network use/login) the software manages to register itself in all the registries and you can use it whichever way you log in. With my own software it will register OK but the settings I enter into the registry are only visible in the registry active at the time of registration. When you log in differently and another registry is used the program cannot access the values in the original one.
The solution seems simple: register the software in all possible registries as the Microsoft products seem to do. The question is: how do you do that ?
Any answers most welcome and appreciated.
Filip
|
|
|
|
|
one thing you can consider is to add your registry entries to HKEY_LOCAL_MACHINE, instead of HKEY_CURRENT_USER. the first is readable to most processes, regardless of user login. the second is unique for each user.
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
Are you confusing HKLM (Local Machine) and HKCU (Current User)?
You need administrative rights to write into HKLM but it is visible to all users.
Art
|
|
|
|
|
Thank you for the help. A case of "glaringly obvious once pointed out". It ought to make all the difference.
Filip
|
|
|
|
|
I'm using doxygen for the first time and I'm trying to configure the configuration file with the doxywizard. When I run the generation I've got "unknown command or file name" dos window and that's all.
How can I figure out what's wrong with my configuration file this way ?
I'm using the latest 1.3.
Yarp
http://www.senosoft.com/
|
|
|
|
|
|
Thanks a lot Andreas, I did a search in the articles before asking but I don't know why I missed this.
My main problem comes with the wizard, I think the files included in the zip file will greatly help me solve this.
Thank again
Yarp
http://www.senosoft.com/
|
|
|
|
|
hi,i'm newer developer on visualc++ and i want to know how can i add a bitmap(more than 256 color) for a button,
Please help,
Thanks
Bye
liuqid
|
|
|
|
|
|
I'd like to use a "output iterator" as a function parameter, but somehow I fail to do that. Any hints where to read about this?
Off to in ~74 days
|
|
|
|
|
Post an example of your code.
Kuphryn
|
|
|
|
|
|
Andreas Saurwein wrote:
Sometimes the SGI STL documentation is really useful
No, it's the VC STL documentation that sucks!
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
|
|
|
|
|
Daniel Turini wrote:
it's the VC STL documentation that sucks!
I second that
Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
|
|
|
|
|
Hi.
Is it possible for me to use CSplitterWnd class in My ActiveX object or Dialog box .Can i use any oter method to achive a Normal SplitterWindow like view in my activeX control; or Dialog box. So that i hav a Left view & Right View
the left view may contain few controls and the rightView too, and i must manage all these controls position when i move the splitter.
Please do a reply as early as possible
regds..
Jibesh.V.P
Jibesh.V.P.
India
|
|
|
|
|
|
This link shows the method of using CDoument and CView in a Dialogbased application .
http://www.codeguru.com/dialog/vwindlg.html
When i tried the same Procedured in my Active -X there is a Excpetion in Assiging CDocument class to the CCreateContext member variable.
how can i perfor that in my ActiveX
Jibesh...
|
|
|
|
|
I have two files:
a.txt:
20020102,23.0
20020103,23.0
.............
20021220,23.5
b.txt:
20010101,22
20010102,25
...........
20010301,35
Now I want to append the lastest datas of the file "a.txt" to the file "b.txt". How could I do ! Please tell me the easy way to do it! Thanks a lot!
|
|
|
|
|
You can do somethig like that:
<br />
FILE* m_pFile1;<br />
FILE* m_pFile2;<br />
<br />
m_pFile1 = fopen("a.txt","r");
m_pFile2 = fopen("b.txt","a");
<br />
char Dummy;<br />
while (!feof(m_pFile1))<br />
{<br />
Dummy = fgetc(m_pFile1);<br />
fputc(Dummy,m_pFile2);<br />
}<br />
|
|
|
|
|
Don't be rediculous,
fgetc & fputc? Reading & writing file by character....
LPTSTR lpBuf;
DWORD dwRead, numChars;
HANDLE hFile = CreateFile(fileNameA, GENERIC_READ,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0);
if ( hFile != INVALID_HANDLE_VALUE)
{
numChars = GetFileSize(hFile,0);
if ( numChars )
{
lpBuf = new char[numChars+1]
::ReadFile(hFile, lpBuf, numChars +1, &dwRead, NULL);
HANDLE hFileB = CreateFile(fileNameB, GENERIC_WRITE,0,0,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,0);
if ( hFileB != INVALID_HANDLE_VALUE)
{
::SetFilePointer(0, 0, FILE_END);
::WriteFile(hFileB, lpBuf, numChars, &dwRead, NULL);
CloseHandle(hFileB);
}
CloseHandle(hFile);
}
}
|
|
|
|
|
Oh , the spelling mistake. the lastest should be "latest"
The focus is: I want appending the "latest" datas of aa.txt to the file bb.txt
The latest datas in the file aa.txt are the datas that are not included in the file bb.txt.
Note: i only want to append the datas that the bb.txt is not included.
Thanks!
|
|
|
|
|
i have placed a CRichEditCtrl in a View.Size of that Control is exactly same as that of the View.No Vertical & Horizontal scrollbars for that CRichEditCtrl. AutoScrolling also disabled.using lfHeight of LOGFONT i set the hieght & using SetFont, i have set it to that Ctrl.now i know the Font height & height of the CRichEditCtrl.(GetClientRect())
With this information how can i calculate maximum number of lines that could be displayed in that Ctrl without scrolling?.
I assumed,
MaxNumberOfLines=(Height of the CRichEditCtrl)/ FontHeight.
but it is not exactly correct.i think there i am missing the vertical space b/w 2 lines.
Vinothini A
|
|
|
|
|
If you are using a single font in your rich text document then you should be able to select the font into a display compatibler DC (possibly tempory) then use FontHeight = GetTextExtent().cy to determine the maximum FontHeight of a line of text. The string passed to GetTextExtent() can be either the entire text you with to display or a subset like "iWy", the subset would have to contain tallest (W,H,$) and lowest hanging (y,g,p) charactes that you expect to use.
I have written some text editors, including color coded, and this basicaly how I determine the height of all text lines.
Trust in the code Luke. Yea right!
|
|
|
|
|
|
Hi All,
I am working on a project(.dsp in Visual C++ 6.0) which
has multiple .idl files, many of these .idl files has
cross reference. Actually what I mean is, a function
inside file1's interface(interface_of_file1) takes a
parameter of file2's interface(interface_of_file2). Plus,
a function in interface_of_file2 takes parameter of
interface_of_file1. I hope you people got the idea that
both files need the other file to be compiled. In this
situation, if I import file2 in file1 and compile file1,
compiler tries to compile file2 first and gives error
that:
error MIDL2025 : syntax error : expecting a type
specification near "interface_of_file1" .
Now this is a kind of Dead Lock. I did Forward declaration
instead of importing the file(I do not exactly know the
method offorward declaration in MIDL). I did it in file1
like:
interface interface_of_file2;
Now this gives a different error and a warning:
==============================================
error MIDL2011 : unresolved type declaration :
interface_of_file2 [ Parameter 'parameter1' of
Procedure 'get_CashPeriod' (
Interface 'interface_of_file1' ) ]
warning MIDL2039 : interface does not conform to
[oleautomation] attribute : [ Parameter 'parameter1' of
Procedure 'get_CashPeriod' (
Interface 'interface_of_file1' ) ]
==============================================
Now please tell me, whether I'm doing forward declaration
wrongly? or can anyone suggest some other solution to this
problem?
I will be really thankful for any good answer.
Regards,
Ahsan
Ahsan
|
|
|
|