|
Just, Thought I'd butt in here
Hmmm . The thought of Newsgroups dissapearing is interesting, I prefer both forumns and NGs, Its really the content that gives them value. Personally I still find Site-Forumns "slow".
NNTP seems to serve up the info so-much faster,(probably due to ISP caching) The downside is messages are cleared by the administrator.
What would be interseting would be a client-side Combination of the two technologies.
Imagine a client "ActiveX that is actually a Newsreader"
embedded on a HTML or ASP etc webpage, Possibly it could provide the best of both worlds. Webpage styling and links, whilst still being text-based, and NewsReader retrieval speed through the NNTP protocol. Something like this could breath new life into NewsGroups.
I realise this forum isn't the place to post this sort of thing, But I couldn't resist the oportunity to throw my 2 cents in.
Regardz
|
|
|
|
|
What should I do if I want to programatically register my application to handle one type of file?
Thanks,
Tony
|
|
|
|
|
I've written a dll using ATL. It uses CDatabase to read values from a database. Everything works fine in a standard MFC app, but when I moved the code into a ATL/COM project it fails with the following error:
"Only SQL_DRIVER_NOPROMPT is allowed when connection pooling is enabled"
I access my database with the following, which according to MS Knowledge Base should solve the problem, but it doesn't:
...
if(db->OpenEx(m_strConnection, CDatabase::noOdbcDialog))
...
Anyone had this problem?
|
|
|
|
|
Hmmm... I haven't had this problem but it seems like you're doing everything correctly. Have you tried stepping into the OpenEx function with the debugger to see where exactly the problem comes from?
|
|
|
|
|
Hello,
When opening a project in Developer Studio, the FileView pane of the Workspace normally shows the files in an alphabetical order.
Recently, I've seen in my workspace the opposite: the files are shown in a descending alphabetical order.
Does anyone know how to change this file representation back again to the ascending alphabetical order?
Thanks in advance,
Geert
|
|
|
|
|
I want to create a Common File Dialog, like the one in MFC, in my ATL COM component. I turned off "MFC Support" option to minimize the COM component size.
Is there any dialog class, like CFileDialog, in ATL to do that? Or is there any easy way to do that other than create my own file dialog?
Thanks,
Tony
|
|
|
|
|
You can use "GetOpenFileName"/"GetSaveFileName", They are Win32API methods that can be used to open/save a file respectively. If you are just browsing for a folder, you can use "SHBrowseForFolder" API method.
Hope it helps,
|
|
|
|
|
|
Is there any easy way to resize an icon to 16x16 or a custom size through a windows function. I can think of a few ways to do this the long way ( one involving
the use stretchblt on memory DC's ).
Basically I'm using these icons with my own subclassed
buttons.
Thanks.
|
|
|
|
|
Try this:
<br />
hnewicon = CopyImage(holdicon, IMAGE_ICON, 16, 16, 0);<br />
where 16,16 are the new dimensions
|
|
|
|
|
Thanks, exactly what i needed!
|
|
|
|
|
How change color in Win32 standart aplication not MFC!?
|
|
|
|
|
Hi there!
Anyone know analog ListView_SetBkColor or ListView_SetTextColor for COMBOBOX
How change color in a COMBOBOX??? Not in MFC, I mean standart Win32 Aplication!
Please help me! Answer also send on email! desprojects@yahoo.com
Cua,
Sergey
|
|
|
|
|
How do I change the font of the Application Title
that is on the Mainframe window
thanks
robin
|
|
|
|
|
That's not simple.
You have to draw the caption by yourself.
I don't know what to do exactly, but you have to handle many window messages, such as WM_NCPAINT, WM_NCACTIVATE and more...
|
|
|
|
|
I have a program that takes 3d geographic data (digital elevation model) and saves it as a 2d grayscale
bitmap where the higher elevation are represented by lighter shades and lower elevations are represented
by darker shades. I have the raw bits and put the bitmap header info on them and save as a bitmap.
I am trying to bring those raw bits into DC so that I can write text on the image before saving it as a bitmap
Any suggestions would be greatly appreciated.
|
|
|
|
|
Hi Paul,
create a compatible DC, select the bitmap into the dc and modify the dc.
CDC dc;
dc.CreateCompatibleDC(GetDC());
CBitmap *pOldbitmap=dc.SelectObject(pBitmap); // Your CBitmap-Object
// now modify the dc
dc.TextOut(...);
// clean up
dc.SelectObject(pOldbitmap);
Finito! Now your bitmap is modified.
|
|
|
|
|
Hi,
Im trying to make a dll or activex component using Visual C++ for scripting (VbSCript)
Any good articles or ideas on the topic?
What I wanna do is make a dll function in which u can pass a ado recordset and it would display it on the asp page in a table.
plz help. thanks in advance.
|
|
|
|
|
Hi,
There are lots of commercial products, which are doing what you need. Unfortunately I haven't seen any article of how to do that. But it's pretty simple to do... You can read the data from the recordset and then display it in the table using the Write method of the IResponse interface.
Your question is too generic and if you can ask something more specific I will be glad to help you.
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
|
Is there someone out there that can help me solve this problem? I am an intern working on an E-Mail Alert Software program. The pre-existing code was written in document form, my job is to create a user interface in dialog form. These two simply aren't compatible and I am trying to switch the former code to a dialog based application. Please, any help would be greatly appreciated.
~Terry
DesignTech
|
|
|
|
|
Terry,
Maybe you are thinking it is harder than it actually is,
As long as you aren't using extensive Doc/View architecture,
It's just a lot of Copying and Pasting,
Or stick with your Form/View but in the main init/instance
Hide your main window, and open a Modal Dialog Window that points back to the parent, for your function calls etc,
Actually I always thought anything you manage to do in a dialog App you can do in a form app plus you have Doc/View and serialization etc more readily available !
Regardz
|
|
|
|
|
Hi,
i have a big bitmap file and want to separate it into smaller bitmaps. What is the easiest way to do this?
I thought it would be a good idea to blit a small rectangle of the bitmap into another, smaller bitmap,
but i didn't find out how to do that.
Is it possible that way?
Thank you,
Chris.
|
|
|
|
|
Hi Chris,
You have to create a compatible DC for both source and destination bitmaps, with CreateCompatibleDC().
Then you select those bitmaps in their respective DC with SelectObject().
Then all you have to do is a BitBlt() specifying which portion of the source bitmap is to be copied.
Cheers,
Paolo.
|
|
|
|
|
Hello!
Can anybody help me in my trouble?
I develop application whitch provide his own page setup dialog(Word97 pagesetup dialog analog). I develop and debug it on Epson stylus photo 750 printer. For some my requests I use DeviceCapabilities function with code DC_MAXEXTENT and DC_MINEXTENT. All work fine. Then I try to work with HP LaserJet 4050. It's terrible! DeviceCapabilities return incorrect values, and GetLastError say me what "Data area passed to system call is too small", But MSDN say what i do not shell pass any buffer into DeviceCapabilities with this codes.
Please! If you may halp me, Answer to my question. I be very glad.
|
|
|
|