|
GetTextMetrics might help.
Todd Smith
|
|
|
|
|
Hi,
I want to create an .mdb file using ODBC like :
<br />
CDatabase database;<br />
CString sDriver = "Microsoft Access Driver (*.mdb)"; <br />
CString sSql;<br />
CString strSQL;<br />
<br />
<br />
sSql.Format("DRIVER={%s};DSN='';FIRSTROWHASNAMES=1;READONLY=FALSE;<br />
CREATE_DB=\%s\;DBQ=%s",<br />
sDriver, "F:\\TEMP\\DATABASE.MDB", "DATABASE");<br />
<br />
if( database.OpenEx(sSql,CDatabase::noOdbcDialog) )<br />
{<br />
}<br />
OpenEx function return the following error message :
"File ('inconnu') not found..... Connect string attribut non valid..."
Thank for help
|
|
|
|
|
http://www.appspeed.com/
SkinMagic is a powerful library that changes the visual appearance of windows or dialogs, providing developers with full-featured support for 'application skins', or 'application look and feel'. SkinMagic makes it easy to create programs with visually stunning, fully interactive user interfaces.The interfaces can even be created or edited directly at runtime.
With SkinMagic you could make your program look exactly like it was from another OS, or create your own user WinAmp-like "skinned" interfaces, or just give it a different, distinctive look.
http://www.appspeed.com/
Speed your application develop
|
|
|
|
|
What's is your problem?
Does your app crash?
These forums are here for you when you don't understand something, need advice or if your code doesn't work as you want. So, this kind of question is not a question about a problem, it's advertising!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Please don't advertise products in these forums.
Regards,
Brian Dela
|
|
|
|
|
How to do it for free! Source code included! It's more powerful than a locomotive, and able to leap tall SPAM in a single function call! It's...
GUIGUI!
"Perhaps the truth is less interesting than the facts?" -- Amy Weiss, RIAA's Senior Vice President of Communications. It's the new math! 421 == 156 !
|
|
|
|
|
Son of SerGio?
Todd Smith
|
|
|
|
|
Ssssh! You might awake the beast within him.
--
Only in a world this sh*tty could you even try to say these were innocent people and keep a straight face.
|
|
|
|
|
hi
i have a Device context. is there any way to findout if it change ?? (for example i foundout if a line drawn in it or any changes occures in it)
i want to Redraw a DC if it change. but first i have to findout if it change.
thnx
|
|
|
|
|
It seems you don't really understand what a DC is. You can't draw lines in a DC, you can draw lines on a bitmap using a DC.
The DC is (among other things) more of a descriptor and abstraction layer of the target device and area.
If you however are sure no one else is selecting a new bitmap into the DC, you could possibly create two DIB sections, select one into the DC, select the other into a compatible DC, and blit the original bitmap into the second one. When you then want to check if anything has changed you can just memcmp the two memory areas.
It would probably be quite slow (I'd expect something like >5 milliseconds for just 640x480x24, even on a moderately fast machine), but short of alternatives it would at least work (maybe you'll have to use 32-bpp to not be bitten by DWORD-alignment and unspecified values at end of every line).
|
|
|
|
|
oh Jesus.
thanks for your Very Very Great and Compelete Answer
i read your previus answer about Flicker. it was wonderfulllll
thank for your helppp.
-=Ehsan-de-Burge=-
|
|
|
|
|
If you are using Memory Device contexts (where you select your own bitmap into the DC) then you can use this function to find the bounding box to the last changes since you ask for the changes:
::GetBoundsRect
However, if you are trying to detect changes on a window, then you will have to resort to other methods.
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!
|
|
|
|
|
I have a an MFC application in which I insert and OLE object(Word Document)
Now the problem is that I have an "View" Menu for my application with 6 submenu...So when I insert the Ole object..My Application Menu dissappears and "View" Menu of Microsoft word appears.So any idea how to merge two "View" menus...Is urgent
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
how to get a hwnd from an id ?
how to get minuttes from clock?
r00d0034@yahoo.com
|
|
|
|
|
????
To ask the right question you have to know part of the answer. Try to read books, it helps.
|
|
|
|
|
Anonymous wrote:
To ask the right question you have to know part of the answer.
What do you mean with this?
Why does he have to know some part of the answer? Doooh.
Tell me that part!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
It is like , when person loves "C#, ASP.NET and C++", but advises others to use gmtime instead of standard windows APIs.
|
|
|
|
|
And why didn't you mention that to him then, stupid "Anonymous"?
Do you know why forums are made? They are made to help people who asking for help.
You didn't help!
But I did... I can acknowledge that I forgot the Win32 API (GetSystemTime) because I've been to long inside the C Runtime Library now. But you knew about the Win32 API so, Why didn't you mention that? Doooooooooohh!!
BTW: Why are you anonymous? Don't you take responsibility for what you say?
Help or be quiet!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Would you like my home address too? I did not mention anything because with your irresponsible answers you are breading ignorant programmers. This person obviously does not know anything about Windows or programming in general. By giving him this "quick fix" you produced yet another hacker, rest of us have to clean up after. This guy should read something, anything, before even coming here.
|
|
|
|
|
Anonymous wrote:
Would you like my home address too?
Not necessary.
Anonymous wrote:
I did not mention anything because with your irresponsible answers you are breading ignorant programmers.
Hm... I answered him with "Look up time(...) and gmtime(...) in MSDN Library....". That is an answer for what he were asking for! And the first one, that thing with HWND and ID I didn't understood so I asked what he meant with that. What did You answered him? Nothing! You said he had to know some damn part of the answer!!
Do I bread ignorant programmers??? You're so stupid!
Anonymous wrote:
This person obviously does not know anything about Windows or programming in general.
Right, then I told him to look up some functions that might be what he were looking for.
Better he look up things and read about it then I give him already written code!
Anonymous wrote:
By giving him this "quick fix" you produced yet another hacker, rest of us have to clean up after.
Hacker? ROTFLMAO!
We are talking about a way to get the minutes from time and how to get a HWND from some ID!
Anonymous wrote:
This guy should read something, anything, before even coming here.
Give him some advice then!
He may be don't have money to buy books and tutorials is hard to find, the good one is.
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
imran_rafique wrote:
how to get a hwnd from an id ?
What kind of ID do you have?
imran_rafique wrote:
how to get minuttes from clock?
Look up time(...) and gmtime(..) in MSDN Library
nd not to forget, look up the tm struct also!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
say id of a button ?
r00d0034@yahoo.com
|
|
|
|
|
Maybe with GetDlgItem ?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hi,
:-DI did not get convincing answer the last time.sorry if considered spam.
I am drawing these engineering related drawings that need a lot of pre calculation for neat display before actually being rendered to the user.Every time.Zooming included.I (naturally) used CreateCompatibleDC() function,drew onto that, calculated stuff and continued from there.
The problem arises while scrolling.I set the scrolling sizes according to the bounds of the drawing plus spaces.The bound is calculated as said earlier.When i scroll, things get eaten away.However, moving the drawing slowly using the arrow keys works fine.
Why is this happening?Help.Drawing is the soul and life and ... of my sw
Kofi Ntini
|
|
|
|
|
I'm doing a MFC MDI app, with CScrollView view.
I am getting a very strange problem, the last row of the view is not visible until I resize the window in any way. I can scroll to the bottom, but it won't be visible until the window is resized(Even smaller, I can scroll there and it'll be drawn then)
This is how I set the scroll size
SetScrollSizes(MM_TEXT, CSize(1026, 1026),
CSize(64, 64),
CSize(1, 1));
Everything else draws fine though
This is how the last row is drawn
if (dc->RectVisible(CRect(CPoint(0, 1025), CSize(1026, 1))))
dc->FillSolidRect(0, 1025, 1026, 1, RGB(70, 70, 70));
Still happens if I do it without the RectVisible()
|
|
|
|