|
Hi!
Has anyone figured out how to get information from Netscape's registry format nsreg.dat? I need to get out the user profile list and the user profile location.
Thanks...
Y.Z.
|
|
|
|
|
==================
The original message was:
Hi!
Has anyone figured out how to get information from Netscape's registry format nsreg.dat? I need to get out the user profile list and the user profile location.
Thanks...
Y.Z.
|
|
|
|
|
visit mozilla
and download full source:
Look for fegui.cpp and set breakpoints....
Bri
( Dropping crappy NetScape he he?)
==================
The original message was:
Hi!
Has anyone figured out how to get information from Netscape's registry format nsreg.dat? I need to get out the user profile list and the user profile location.
Thanks...
Y.Z.
|
|
|
|
|
Hi All,
In my app I need to send e-mail directly.
I use Simle MAPI for that and it works fine.
The problem is that want to send formatted text.
When I tried to set the message text to HTML text some e-mail programs (Like Eudora Pro) rendered it fine.
However other e-mail programs (Outlook and Outlook Express) do not render it and just show the html source.
I know that there is a way to send formatted text since Word does it.
I already called Microsoft Tech Support and they couldn't give me an answer.
Can anyone help?
Thans,
Eli.
|
|
|
|
|
Hi Eli,
you cannot send formatted text with Simple MAPI by default (although some mail readers parse it correctly), because you cannot specify the format of the content in Simple MAPI. With Extended MAPI you can specify the encoding of the message body (text/HTML or text/RTF).
For a sample, see Microsoft's MSDN online (search.microsoft.com/us/dev/) and search for article "Q216344".
Willi
==================
The original message was:
Hi All,
In my app I need to send e-mail directly. I use Simle MAPI for that and it works fine.
The problem is that want to send formatted text. When I tried to set the message text to HTML text some e-mail programs (Like Eudora Pro) rendered it fine.
However other e-mail programs (Outlook and Outlook Express) do not render it and just show the html source.
I know that there is a way to send formatted text since Word does it.
I already called Microsoft Tech Support and they couldn't give me an answer.
Can anyone help?
Thans,
Eli.
|
|
|
|
|
Hi,
Have anyone any sample how to do a thread pool
to win32 with C++ ?
Regards
MiLa
|
|
|
|
|
I have a simple soucecode. I should not be a problem to implement it with MFC once you understand how it works (unfortinally the reverse is not so easy. MFC to simple function)
Why does the program use other y pos than it was assigned?
Sleep can solve bugs that is hard to find.
Remove the comment to se the effect of sleep.
_____________________________________________________________________________________
#include <windows.h>
#include <process.h>
//Make sure you use Project->Settings->C/C++ ->Code Generation->Use runtime library->"Multithreaded dll"
#include <iostream.h>
HANDLE hStdOut;
char space[10];
DWORD test=0;
#define MAX_CONCURRENT_THREADS 10
BOOL MyFunc(int x);
HANDLE hEvent;
void main(void)
{
hStdOut = GetStdHandle( STD_OUTPUT_HANDLE );
int x=0;
hEvent = CreateEvent(0,0,0,0);
while(x<max_concurrent_threads)
{
="" _beginthread((void="" (__cdecl="" *)(void="" *))myfunc,0,(void*)x);
="" sleep(100);
="" x++;
="" }
waitforsingleobject(hevent,infinite);=""
="" *if(closehandle(hevent))
{
="" messagebox(0,"success!!","",0);
}*=""
while(1)
{
="" _endthread();
}
cout<<"done";
}
bool="" myfunc(int="" x)
{
coord="" coord;
coord.x="0;
coord.Y=x;
" int="" n="x*10000;
" while(1)
="" writeconsoleoutputcharacter(hstdout,_itoa(n,space,10),9,coord,&test);
="" sleep(1);="" remove="" the="" comment="" to="" se="" effect="" of="" sleep.
="" n++;
="" setevent(hevent);
="" if(n="">500000)
_endthread();
}
return 1;
}
Regards
Andreas
==================
The original message was:
Hi,
Have anyone any sample how to do a thread pool to win32 with C++ ?
Regards
MiLa
|
|
|
|
|
Is there any API for Protected Storage service?
|
|
|
|
|
hello
how can i biuld an application for fetching row from a large database (1000's rows) a constant number of rows (25 or 50) and put those rows into a listview and when the scroll is down fetch next group of rows
it is posible to use an sql cursor (i use a sql server for database)?
please post some tutorial for this
i think is usefull for most people
i know that the ADO can do this but i don't want to use an active x control
thank you very much
|
|
|
|
|
I'd love to see a code sample of how to play multiple musical notes at once from memory instead of a file.
Thanks.
|
|
|
|
|
How can I derive (superclass) my own class of windows from standard BUTTON class, for example, and change its look (for example: buttons and other controls in Microsoft Money).
|
|
|
|
|
Derive your class from CButton. Then you have to guarantee that your button is always created using BS_OWNERDRAW style (if button is created explicitely using Create() function you might override PreCreateWindow() in order to do that, otherwise when button is being subclassed, e.g. in DDX/DDV engine, you have to override PreSubclassWindow() and put there an assert that checks for BS_OWNERDRAW style).
As long as BS_OWNERDRAW style is set Windows will send your button WM_DRAWITEM message in which you have to draw the button. MFC provides virtual DrawItem() function that you need to override in order to handle WM_DRAWITEM message.
From this point you are on your own in terms of providing drawinf implementation and handling the mouse and keyboard input in any specific way (of course, if you need to).
Above mentioned details of implementation are valid only if you use MFC in your development. Using straight SDK you would need to take basically the same steps. But of course you need to handle all corresponding messages (WM_CREATE, WM_DRAWITEM) explicitly in your window procedure.
Regards
Andrei Zenkovitch
Dundas Software
==================
The original message was:
How can I derive (superclass) my own class of windows from standard BUTTON class, for example, and change its look (for example: buttons and other controls in Microsoft Money).
|
|
|
|
|
Hi,
I am working with mpegs quiet a lot and need new
mpeg decoding source code (preferably in C++)
Do you have any or do you know where to find it?
tnx,
Kai.
|
|
|
|
|
Does anybody know what to do to use the new Open File Dialog
that is now standard on Windows 2000 ? My app works fin on
W2000 but the Open File Dialog looks exactly the same way as
under Windows 95/98/NT.
Thanks
|
|
|
|
|
You probably need to get the latest version of the shell DLL's for each OS. which may or maynot be available in a Service pack.
==================
The original message was:
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT.
Thanks
|
|
|
|
|
In any case, it might be safer to use the old dialog box, unless you are planning to make your program only W2000 compatible. The other option is to use an OS check and open a different box for each setting...however, this might complicate things depending on how the API for the new boxes works. It may auto-detect for you, but you never know. Best thing is to get the docs from MS and then implement it.
==================
The original message was:
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT.
Thanks
|
|
|
|
|
New Open File dialog is available only on Windows 2000 and in order to use it you have to use new version of OPENFILENAME structure that is defined in platform SDK 2000 as following:
typedef struct tagOFN {
DWORD lStructSize;
HWND hwndOwner;
HINSTANCE hInstance;
LPCTSTR lpstrFilter;
LPTSTR lpstrCustomFilter;
DWORD nMaxCustFilter;
DWORD nFilterIndex;
LPTSTR lpstrFile;
DWORD nMaxFile;
LPTSTR lpstrFileTitle;
DWORD nMaxFileTitle;
LPCTSTR lpstrInitialDir;
LPCTSTR lpstrTitle;
DWORD Flags;
WORD nFileOffset;
WORD nFileExtension;
LPCTSTR lpstrDefExt;
DWORD lCustData;
LPOFNHOOKPROC lpfnHook;
LPCTSTR lpTemplateName;
#if (_WIN32_WINNT >= 0x0500)
struct IMoniker **rgpMonikers;
DWORD cMonikers;
DWORD FlagsEx;
#endif // (_WIN32_WINNT >= 0x0500)
} OPENFILENAME;
The new element of this structure that you will be primarily interested in is FlagsEx. It can be set to the following value:
<<<<
OFN_EX_NOPLACESBAR
If this flag is set, the places bar is not displayed. If this flag is not set, Explorer-style dialog boxes include a places bar containing icons for commonly-used folders, such as Favorites and Desktop.
>>>>
Regards
Andrei Zenkovitch
Dundas Software
==================
The original message was:
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT.
Thanks
|
|
|
|
|
Have a look at www.microsoft.com/msj
The "Microsoft Systems Journal" dated Aug 1999. Aticle "The logo and beyond..."
Regards
Jerry
==================
The original message was:
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT.
Thanks
|
|
|
|
|
Hi Michael,
have a look at http://www.codeproject.com/dialog/win2000fd.asp
Best regards,
Thomas
|
|
|
|
|
I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class.
I want it to:
~ be derived from CDC so that I can draw & blit to it, etc
~ be able to load from and save to 8,16,24 and 32bit DIBs
~ flip (mirror vertically)
Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it.
Thank you in advance
|
|
|
|
|
The easiest thing to do would be to modify your CDIB class to use a DIBSection instead of direct memory - the only thing to change here would be the way you allocate your memory - but you probably use Global Alloc any way so that too shouldnt matter. I have a DIB class which i attach to a DibSection everytime i want to use one of the GDI functions to draw into the DIB . If you have a problem, let me know at rrajivram@hotmail.com and Ill try to send you a stripped down version which will show you the way.
Cheers,
Rajiv
|
|
|
|
|
Maybe http://www.codeproject.com/gdi/WebImageDC.asp will provide a starting point...
==================
The original message was:
I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class.
I want it to:
~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically)
Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it.
Thank you in advance
|
|
|
|
|
I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw.
What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?.
Thank-you
Steve
|
|
|
|
|
==================
The original message was:
I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw. What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?. Thank-you Steve
Dear Steve,
Offhand, it sounds like you need to invalidate the area of the control after doing the paste,
so that the new text will pop into view right away. I'm not an RE expert, but there should be a
way to do an OnUpdate() or OnDraw() call for the control, which is after all a window.
I hope this helps,
Wes Rogers
|
|
|
|
|
I am looking for a way to list the files in a project open in the IDE. I cannot seem to find the right object/method. I want to operate on the files in a macro. I need to optionally see only the "selected" files. I tried recording the action of selecting some files, right clicking them and then hitting "compile" but it basically gave me an empty function. This may be part of the VCS interface that Microsoft is holding secret.
|
|
|
|