|
Thank you.
This is what I was also thinking.
|
|
|
|
|
Hi, i'm currently planning to write a programm which allows the user to generate own dialogs to use defined functions.
I came around by letting the user add/modify dll-dialog resources.
I know ther are some resource editors out ther by whick you can edit the resources of existing (compiled) exe/dll files. (e.g. reshacker, restuner, PE Explorer,...)(Its also possible with VStudio, I know.)
There is an MSDN SDK sample called "DlgEdit" but with this you can only modify ".res" files...
BUT I dunnot want the USER to have VStudio installed to create his own dialogs.
So i thought about writing my own resource editor.
So does anyone now to help me in that problem??
I need to know where th resources are located in the exe/dll and how to "decompile" them and then paste back to the exe/dll again and the store the exe/dll.
help would be greatly welcome, as I'm not a master VC++ coder up to now
Greetingz from da HackMan
|
|
|
|
|
Search for DLGTEMPLATE and DLGTEMPLATEEX in MSDN.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Ah, looks good, but how to use it??
Greetingz from da HackMan
|
|
|
|
|
A list of things to check: LoadLibrary[Ex], FindResource, LoadResource, DialogBoxIndirect, CreateDialogIndirect, UpdateResource.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Hi!
Does anyone know how to paint each character in a CListCtrl in a different color? (Not just chaning complete text or line color, I know how to do that already)
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
you will have to do this as an owner-drawn control . ie. you'll have to handling all the rendering of the cells yourself.
-c
Democracy is the worst form of government except all those other
forms that have been tried from time to time.
-- Winston Churchill
|
|
|
|
|
I feared that....could you give me a hint where I should start?
Which function should I override? Do you have any useful links?
thanks
modified 12-Sep-18 21:01pm.
|
|
|
|
|
there are some articles on www.codeguru.com that describe it (here's one: http://www.codeguru.com/listview/sel_row.shtml). it's not too bad.
-c
Democracy is the worst form of government except all those other
forms that have been tried from time to time.
-- Winston Churchill
|
|
|
|
|
Hi,
I have my Visual C++ 6.0 application that uses DAO and Microsoft Access (Trial.exe & Trial.mdb)! I would like to give that application and mdb to my friend to try, but he does not have Visual C++ & MicroSoft Access!
However I do have:
- Vbrun60.exe
- DaoRedis.exe (& its Setup.exe)
Can some one tell me in detail, what I need to do in other to include all neccessary files in my CD & give it to my friend?
Thank you for all help!
|
|
|
|
|
You need to install MSJet db engine.
You can install MDAC + MSJet engine (MSJet not included in MDAC >= 2.5)
See http://www.microsoft.com/data/ for MDAC and Jet files.
Pavel
Sonork 100.15206
|
|
|
|
|
Hi Pavel,
Thank you very much for your help, but I have 2 un-cleared instructions:
1) In the website they did not mention about DAO (only ADO, OBDC & OLE DB), is that OK for DAO too?
2) Who will do the download: me or my friend who does not have Visual C++ & MS Access?
*) If it is me to do that then how I put files to my CD (for giving it to my friend), I will include Trial.exe, Trial.mdb & all download files?
Many thanks & hope you give me a bit more info!
|
|
|
|
|
1) DAO is a native interface of MS Jet database engine, so if You have MSJet installed, you can use DAO (MS Jet is database engine for MDB file format, Access is an app build over it like that one of yours.)
2) Files to download are MDAC in version and language of your selection (I'm using 2.6 right now, 2.7 is newest, I had no reason to download it) - one exe file setup and Microsoft Jet 4.0 Service Pack 3 - also one exe file setup where you can choose the language.
Pavel
Sonork 100.15206
|
|
|
|
|
How do you avoid getting off the wall return dates when using CMonthCalCtrl::GetCurSel(CTime)? I've zeroed the time vars (hour, min, sec, milsecs) from my CTime object and still keep getting strange dates upon retrievals. E.g., when I pick May 1st, 2002, the date stored is Dec 8th, 2004. Here's a snippet from my code:
//zeroing time to avoid off-the-wall date retrievals
SYSTEMTIME systime;
m_calStockingDate.SendMessage(MCM_GETCURSEL,0,(LPARAM) &systime);
systime.wHour = systime.wMinute =
systime.wSecond = systime.wMilliseconds = 0;
//retrieving date
CTime StockDate(systime);
m_calStockingDate.GetCurSel(StockDate);//current selection is 5/1/2002
pDoc->m_nStockingDay = (int) StockDate.GetDay();//day is 8, should be 1
pDoc->m_nStockingMonth = (int) StockDate.GetMonth();//month is 12, should be 5
pDoc->m_nStockingYear = (int) StockDate.GetYear();//year is 2004, should be 2002
Thanks,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
That is totally wierd!!! you are right, CTime seems to get totally the wrong date. On my PC the day is consistently 12 days after the date you selected.
It wraps around so if you choose the 17th feb 1999, it comes up with the 1st march 1999. If you choose 16th Feb it gives you the 28th Feb 1999.
It does work correctly with:
BOOL GetCurSel( LPSYSTEMTIME pDateTime ) const;
though so you could always create a SYSTEMTIME structure and use the above method. Or you could create your own class, derived from CMonthCalCtrl and fix the dodgy method!!
Well spotted!
Adam.
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
I think I figured it out. CTime also has hours, minutes, seconds, and millisecs. Your have to make sure to zero those for the date selections to work. Like this:
SYSTEMTIME sysTime;
m_calStockingDate.GetCurSel(&sysTime);
sysTime.wHour = sysTime.wMinute =
sysTime.wSecond = sysTime.wMilliseconds = 0;
//retrieving date
CTime StockDate(sysTime);//now date is stored as selected
It worked for me. Good luck,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
Hi,
I have a few simple pages like so,
1a.htm has a hyperlink to 1b.htm, and
2a.htm has a hyperlink to 2b.htm.
The only difference between 1a.htm and 2a.htm are language (German and English) and the tags and names are identical.
All pages are on the same directory. When I tested the pages on my company's IIS server the links work ok but when I put them on the client's apache server, clicking the link gave me 404 error. I even tried absolute path but getting nowhere!
Can someone share an idea or experience.
Will
|
|
|
|
|
Did you make sure that the case of the HREF matches the case of the actual pages on the Apache server?
|
|
|
|
|
Hi,
What do you mean by the actual pages on the Apache server? Do you mean the HREF on my pages have to be all lower case or upper case?
Will
|
|
|
|
|
If you page name is H1.htm and your link is a=href"h1.htm", this will not work on all Apache installactions.
|
|
|
|
|
Hi,
Sorry I forgot to mention. The page (1a.htm) has a submit button. When clicked I use Javascript something like this;
where
onDone()
{
...
location = 1b.htm
}
|
|
|
|
|
I have a few issues that I was wondering if anybody has seen before or pointers to help out with.
First I am developing an application in Windows 2000 Professional that is supposed to be supported in all varieties of windows. I have run in to several issues where even though it runs in 2000, it fails in 98. A classic example was a divide by zero error in 98 was not even reported in 2000. I have tried to convince my "small" 4 person R&D company to help me setup a win98 test system. They are balking, so I brought in my own system from home with my home development system on it. However the first issue is that when I tried to build on it, it seems to always die on the pre or post build steps. (i.e. I have a kernel library for products that I created that a post build step copies it to a known directory, my home system dies when I try to do this.) The beginning of the main project has some text that says it is "Copying Contents file" which my 98 system cannot get by. The system is Windows 98 First Edition (I know get a better OS but it also has Linux on it) with VC6 SP5 (same as the 2000 machine.) Anyone seen and fixed this behavior before?
So my next question is: Are there any other things that Windows 2000 will hide that cause crashes in Win98 that I can look for? I have searched for an article, but I could not find one in the minimal search that I did. It is going to be hard to fin without a 98 debug station....
Thanks,
Brian
|
|
|
|
|
i ran into some issues with CBrush::CreatePatternBrush that win2k handled but win98 failed on (fatally, took down the OS). it happens when you create a brush that's larger than 16x16 (i think, maybe even 8x8). the docs mention the limit, but they don't mention that you can kill the OS with it.
-c
Democracy is the worst form of government except all those other
forms that have been tried from time to time.
-- Winston Churchill
|
|
|
|
|
This doesn't help you but you might be interested to know that there is a product out there that allows you to run multiple operating systems simultaneously instead of having to bring in separate machine (H/W)for each OS you want to test on. It is called Virtual PC from Connectix Corp. I use it and like it very much. However, it will not always work correctly for testing DirectX applications.
http://www.connectix.com/support/vpcw_online.html
|
|
|
|
|
I want to create a special kind of status window. A transparent window just floating somewhere on the desktop, and I want all mouseclicks to somehow be directed to the window below. In my case I only want the X in the corner to be possible to click. I know this is possible, but I can't figure it out myself.
This is taken from the feature list of another app:
"Transparent - You can make the desktop preview windows transparent in the form of click-through-able. This means that when you click on a desktop preview window, you're not actually clicking on the desktop preview window, but on the window under it. The only place you can click the preview window is on the header."
Sprudling
|
|
|
|