|
You have a database with consist details of each country and now you want to include images to these detaily,right?what problems?
|
|
|
|
|
ellarond wrote: it possible to write any such code wherein we can design colourfulful maps of the countries in c++.
Yes, but why would you want to when such maps already exist? There are much better tools for the job of creating graphics (i.e., maps). Create a blob-type field in your database to hold the graphic files.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thank a lot for the reply.as a beginner it is very difficult for me from where to begin.can u please explain it by giving an example.i have a code for the flag of germany for example.is this correct?
#include <graphics.h>
#include <conio.h>
void ger_flag(int, int);
void main()
{
/* request auto detection */
int gdriver = DETECT, gmode;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "..\\BGI");
setfillstyle(1, WHITE);
bar(0, 0, 639, 479);
ger_flag(10, 10);
getch();
closegraph();
}
void ger_flag(int x, int y)
{
setcolor(BLACK);
rectangle(x, y, x+90, y+15);
setfillstyle(1, BLACK);
floodfill(x+45, y+7, BLACK);
setcolor(RED);
rectangle(x, y+16, x+90, y+30);
setfillstyle(1, RED);
floodfill(x+45, y+25, RED);
setcolor(BROWN);
rectangle(x, y+31, x+90, y+45);
setfillstyle(1, BROWN);
floodfill(x+45, y+40, BROWN);
}
|
|
|
|
|
ellarond wrote: i have a code for the flag of germany for example.is this correct?
I suppose, if you are simply wanting to display the flag on the screen. Germany's flag is one of the easiest to render (i.e., 3 rectangles and 3 colors). How would you draw a flag for a country like Castilla-Leon?
That said, a flag on the screen has nothing to do with storing the image in your database.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i m totally clueless.please suggest a way to work it out.it wud be better if u xplain it by giving an xample.
|
|
|
|
|
ellarond wrote: i m totally clueless.
Which is probably why you should be starting with something a little less involved. Until you have the basics mastered, none of what I suggest to you is going to make any sense.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I agree with you they are active on the codeproject and especialy on the c++ forum
|
|
|
|
|
It's sad that I'm not able to spend much time in CP these days.. . So I'm certainly not aware of new members or others who are also active in CP.
*
|
|
|
|
|
Dear Astricks,
many thanks. your voice worthes much for me; but let's not forget the others, as i'm a really too small gain of sand without all of you, and of course, without the other MVP which have much more technical knowledge than me (special thinking to Mike Dunn).
anyway, Happy New Year to you
|
|
|
|
|
Welcome! Happy New to you Toxcct too .. Oops, not only Mike I forgot peterchen too
*
|
|
|
|
|
Can anybody tell me how to resize programmatically a control in a dialog box, i.e, when I click a button the control is resized, I am not interested in resizing using the mouse ? TIA
fabrice
|
|
|
|
|
Give a look to SetWindowPos in MSDN.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks for the tip, it works. Excuse my ignorance..
|
|
|
|
|
you're welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
Thanks for your help, it also works.
|
|
|
|
|
You're welcome
|
|
|
|
|
See the Extras section of this article.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear All,
I have coded a Windows service program. This is working fine. This is Windows ATL Service program. When i register this service program through Service control manager (SC) i am getting this below error.
' Could not start the rmm.exe service on local computer
Error 1053: The Service did not respond to the start or control request in a timely fashion'
How can change my exe to service.
Kindly help me..
Thanks
Nice things do nice works
|
|
|
|
|
You sure the values your are returning when you respond to those requests are correct?
|
|
|
|
|
Hi
i add a .dll file using #import.
When i try to get handle i shows class not registered.
what should
manu
|
|
|
|
|
I'm not sure that you're using C++ ? If you are, I guess it's COM, is your dll registered ? With regsvr32 ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have written a C++/CLI wrapper for a C++ SDK, and tested it in a simple C# app, it runs fine. When I move the code into my production app, the call that initialises the SDK returns a value of 3145990. According to the docs, this is a Windows API error, a WMI error, or an STI error. However, FormatMessage won't do anything with this value, nor is it a WMI or STI error as far as I can tell. Can anyone suggest what it might be ? It is NOT an error defined by the SDK, I checked that first.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Are you doing anything that involves an external library, like Winsock? If so, you will need to tell FormatMessage(...) to look in that external DLL to find the correct message string.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|