|
It occurs to me, now that i look at it, that the version i'm using has been hacked to allow opaque sizing; if this is something you'd want, mail me & i'll send you a copy.
--------
I'm not sick, but i'm not well
And i'm so hot, 'cause i'm in hell... Harvey Danger, Flagpole Sitta
|
|
|
|
|
Many programs add according shell items for convenience,and then can execute
the corresponding task provieded by the program,this is great.but i am not
sure how to do this,who can help me?
|
|
|
|
|
Check out the articles in this index to see if they can help you:
|
|
|
|
|
Hi
i have a file where each line contains a decimal number (between 0 and 4) and a hexadecimal number between (0 and FFFFFFFF).
what is the best way to read this file and convert the hexadecimal number into a binary number.
thanks
Mohe
|
|
|
|
|
Read my article on ostringstream - it will do this conversion for you. If you're doing file i/o ifstream/ofstream will work in exactly the same way as ostringstring does.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Does anyone know the minimum requirements for the .NET framework? CPU, RAM, OS, etc. Thanks
Chris Hafey
|
|
|
|
|
Nevermind, I found it at the download site for the framework redistributable:
Typical Installation Requirements
The .NET Framework runs on:
Microsoft Windows® 98
Microsoft Windows NT® 4.0 (SP 6a required)
Microsoft Windows Millennium Edition (Windows Me)
Microsoft Windows 2000 (SP2 Recommended)
Microsoft Windows XP Professional
Microsoft Windows XP Home Edition
Software Requirements:
Microsoft Internet Explorer 5.01 or later (install Internet Explorer 6.0)
|
|
|
|
|
Unfortunately VS.NET won't install on Win98
Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
|
|
|
|
|
Is this just your experience, or is it wide spread?
Chris
|
|
|
|
|
Does anyone know the minimum requirements for GDI+? Can it run on windows 98? Does it require a minimum version of DirectX? Thanks
Chris Hafey
|
|
|
|
|
It does not require DirectX, although it can use it for creating some things, I dunno what the minimum version is to do that. It will work with Windows 98, but is not supported for W95. You might want to read my Starting with GDI+ article for more info.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Code:
#include "dao.h"
void main()
{
COleVariant m_var;
LPCSTR m_str;
try
{
CDaoDatabase *base = new CDaoDatabase;
base->Open("c:\\biblio.mdb");
CDaoRecordset *rst = new CDaoRecordset(base);
rst->Open(dbOpenDynaset, "select * from authors");
for(int i=0; i<3; i++)
{
m_var = rst->GetFieldValue("Author");
m_str = (LPCSTR) m_var.bstrVal;
printf("%d, %s\n", i+1, m_str);
rst->MoveNext();
}
rst->Close();
base->Close();
}
catch(CDaoException e)
{
}
}
the header file includes stdio.h and afxdao.h.
Everthing is ok but after print out the first three records in the database, a dialog box appeared with the following message:
Debug Assertion Failed!
Program: C:\WINDOWS\DESKTOP\DATABASE\0041\DEBUG\DAO.EXE
File: daocore.cpp
Line: 39
What's wrong?
|
|
|
|
|
What does line 39 in daocore.cpp look like? Usually from that you can tell what the problem is.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I couldn't find the file 'daocore.cpp', somebody knows what or where it is?
|
|
|
|
|
MFC source
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Could someone gimme some direction on how to create a specialized menu for each view in a splitter window? I want the menu to be drawn inside each of the CViews inside the splitter wnd.
-JT
|
|
|
|
|
you mean like dropping down from the splitter bar at the top of each splitter view? hmmm ... would a right-click pop-up menu for each pane not be good enough? i know it would sure be a lot easier to code
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
|
|
|
|
|
The problem here is that menus are attached to frames. The views in a splitter windows share the same frame so I don't see how you can do this without an awful lot of work.
IDEAS)
1) I did something similar to what you need to do except that I used a dialog bar on one side that contained a tree view and I didn't allow the dialog bar to be undocked. The view on the right side was then a listview. This enabled me to define an CMDIChildWnd-derived frame window and attach a toolbar to it. That frame was then used in the creation of the view's doctemplate.
2) About 15 years ago, I wrote a similar thing in OS/2. This was long before the days of having classes to do the work for you. What I did was to create 3 MDI windows. The first two were my views. The third was a "splitter window". It was simply a window that was defined as being so narrow that only its borders were viewable. Therefore, it looked just like today's splitter. I then handled that window's WM_MOVE message and resized the other windows accordingly. The overall impression to the user was that of using a splitter to view different amounts of each window. This *might* do what you want as with each view you could create your own frame and attach a menu to it.
I know these aren't the answers you were looking for. However, sometimes if someone talks about similar problems/solutions, it can jog ideas of your own that will solve your particular problem.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Hey Everyone,
Anybody got a good recommendation for a regular expression parser that will work relatively well with STL strings, in Visual C++? I hear MS has one they are giving away, but don't know if there are any other ones that are decent.
Thanks,
Aaron
|
|
|
|
|
Hi all,
Is it possible to send email from VC++6.0 without using any email client?
Thanks,
Sunny
|
|
|
|
|
Yes, as long as you have the dlls. I do not know how usefule this link is, but someone wrote a component on codeproject that may get you started. http://www.codeproject.com/internet/xymailclient.asp.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
The most common ways of doing this are:
A) Use the MAPI interface. MAPI is a bloated interface and can't be used by NT services, I would avoid it.
b) Use SMTP to talk directly to the email server. This is very simple to use but requires a third party library. It works with NT services too. You can buy a library that does this or use a public domain version. I think PJ Naughter has some public domain classes for this.
Chris Hafey
|
|
|
|
|
Chris Hafey wrote:
b) Use SMTP to talk directly to the email server. This is very simple to use but requires a third party library.
Actually, you can use MFC sockets support to send the SMTP verbs to the server.
I personally prefer MAPI as it's much easier to use.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Does anyone know how to set the background color of:
- a radio button
- date picker control (spin view)
Thank you
|
|
|
|
|
I have a problem with the function CreateProcessWithLogonW(). The right header files are included, but i always get a compiler error:
error C2065: 'CreateProcessWithLogonW' : undeclared identifier
CreateProcessWithLogonW() is declared in WinBase.h and implemented in Advapi32.lib!!! Both are included!!! What is wrong with them ??
|
|
|
|