|
|
Hi every body,
I need some help here. Please help me doing my final year project.
My question is "How to create bitmaps using createcompatibleBitmap function in VC++ from an array of pixels"
I will pray for eveyone helps.
Thank you in advance .
|
|
|
|
|
You need to use CreateDIBitmap() to create from an array of pixels!
Ant.
|
|
|
|
|
This is a loaded question. I didn't seem to find it handled here, so if this is not the right place, let me know.
What would it take to get a VC++ program with MFC to work under a Macintosh computer. I will assume the obvious for one of the tasks in that I have to remove MFC. touching on that fact, how does one go about doing something of this nature? I'm also assuming I would have to recompile the program on a Mac? How does one go about doing that? Is there a VC6 for a Mac?
Is there anything else that I am missing?
Again, I'm very sorry for the loaded question. If there is an article that someone can point me too, great!
Thanks for your patience.
|
|
|
|
|
Have a looksee at this:
www.wxwidgets.org[^]
It is a cross-platform GUI toolkit, similar to MFC (and can even co-exist with MFC to an extent). There are sections there about porting MFC applications to wxWidgets.
Sometimes I feel like I'm a USB printer in a parallel universe.
|
|
|
|
|
Microsoft came out with a Mac VC cross-compiler based on VC4.x several years ago. We bought it, but never used it. Not sure if it is still available, though...
onwards and upwards...
|
|
|
|
|
Hi,
I am trying to write a program to remove the typed URLs in IE, and I have the following problem.
Open the key
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs
you will see a list of the typed urls.
have an IE window open. Delete one URL, say the last one, from the registry. This does not get removed immediately in the IE address drop down list. Open another instance of IE, and you will not see the removed URL in the addresss drop down.
Now, I have seen some tools which can delete the entries from the drop down list of IE instances already open. What is it different that they do.
The strange that I observed on my work win2k is that the url that we deleted from the registry, and which remains in the IE's list, gets re-added when I close this IE instance.
Can someone give a safe way of removing the typed URLs? Thanks.
-fl.
|
|
|
|
|
See if this helps.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
Thanks for the link.
I have tried iterating through the cache groups and entries. They seem to be different from the 'Typed URLs' list in the registry. Before removing the Typed URLs, I am making sure the cache groups/entries are cleared first. So my initial query remains open.
I am also iterating through the cache entries in a given cache groups and removing them too, although I dont see any entry in any group so far. The other author doesnt do that.
Thanks.
|
|
|
|
|
Okay, I'm very sorry if this is a newbie question and I think I may have even found this solution on here somewhere however that was a while back and I can't seem to locate it now. The question is this,
How does one programmically call an .exe from another application. I'm sure this is basic stuff but the solution escapes me.
Thanks for your patience.
|
|
|
|
|
|
Thanks! You guys are quick!
|
|
|
|
|
Use ::ShellExecute or ::CreateProcess. ShellExecute is much simpler, but CreateProcess gives you more control.
E.g.,
::ShellExecute(NULL, _T("open"), _T("YourProgram.exe"), _T("YourParameters"), NULL, SW_SHOW);
Sometimes I feel like I'm a USB printer in a parallel universe.
|
|
|
|
|
Thanks again. Say it is possible to pass messages between both processes? If this something covered in MFC or is this something I have to perform using this command?
Thanks!
|
|
|
|
|
When starting, you can send command-line parameters from one to the other. Once both programs are up and running, you'll need to use IPC. Examples of that are DDE, pipes, data copy, RPC, to name a few.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Check out the IPC section on CodeProject - lots of good articles. There are several ways of communicating between processes, depending on what you need to do.
Sometimes I feel like I'm a USB printer in a parallel universe.
|
|
|
|
|
i think the system() function can call the exe from the oter program. is there any comment
|
|
|
|
|
I have been trying to build my first DLL but keep getting the following error and have no idea what it means. The Help not very useful either.
WHL_DLL fatal error LNK1104: cannot open file 'c:\Program.obj'
I do not use the file Program.obj and it does not exist.
|
|
|
|
|
sweep123 wrote:
I do not use the file Program.obj
Have you verified that no references to this file exist in the project's .dsp file?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
One of the library files seems to have referenced this file. I have removed it as I dont seem to ned it at present.
However I now get the error when the DLL is loaded:-
no 'initialize' entry found in the TEST_DLL
I have been trying to write a DLL for the CSL scripting
http://csl.sourceforge.net/
The documentation is a bit light for this sharewear product.
|
|
|
|
|
I would welcome some help on this problem (Win32, MFC)...
I wish to ensure some text processing code always executes in the English locale. I have bracketed the code with setlocale() calls as follows:
:
// Native locale code
:
_tsetlocale(LC_ALL, _T("English"));
:
// text processing code, sprintf()s etc.
:
_tsetlocale(LC_ALL, _T("C"));
:
// Native locale code
:
Debugging through this code always shows the setlocale() calls succeeding (returning the selected locale string). However, the first time through, sprintf() floats are incorrectly output in the Native locale format, while the subsequent iterations through this code correctly produce English formatted numbers.
The text processing code exists in a static library written in plain C, while the surrounding code shown above is a C++ DLL linking to the static library.
Any ideas what might be causing this problem and how to solve it?
BlueShirt
|
|
|
|
|
Look up MSDN on setlocale - you will need to pass in something other than "Enlgish". On Windows, it is usually something screwy like Windows_English_CP1252 or whatever. I can never remember the exact strings.
You can also call setlocale with the empty string as a locale, and it will load whatever locale is your system default.
Sometimes I feel like I'm a USB printer in a parallel universe.
|
|
|
|
|
Hi !
I've a C++ question regarding the copy constructor.
Here is my example :
Let's say I've a class which contains a list of pointer on Polygons, called PolygonList.
In the copy constructor of my class PolygonList, I want to fully duplicate the polygons which are stored, so that each PolygonList classes have their own polygon list.
class PolygonList
{
public:
...
std::list< Polygon*> m_PolygonList;
...
};
The problem is that the Polygon class is a base class :
class Polygon
{
...
};
class Rectangle : public Polygon
{
...
};
class Triangle : public Polygon
{
...
};
etc...
In the copy constructor of the class PolygonList, how can I make sure to instanciate a new object of the good derived class, as I only have pointers on the base class and don't know (and don't want to know) about which dervied class of Polygon exists ?
I hope I made myself clear and that you'll be able to help me !
Thanks !
Jerome
|
|
|
|
|