|
|
Sorry... I already have Tic Tac Toe...
|
|
|
|
|
i've got the game of life, any good?
|
|
|
|
|
I think I have the code for the Beer game somewhere around here but I've just been playing the game so much lately that I'm way too drunk to find the code again.
|
|
|
|
|
Hi..
I have a map on a picture box. I need to insert a "picture-point" where the user click.
I got a function to merge the pics, but, how can I take a piece of the picture box? I have the X and Y of the point, but how to copy this region?
help me please!
sorry for the bad english!
thanks all!
|
|
|
|
|
Why you try to copy that clicked region?
My small attempt...
|
|
|
|
|
I need to merge the clicked point into a aiming-pic.
To become transparent into the aim.
d`you know what i mean?
att...
cheers!
|
|
|
|
|
once you have the picture and the clicked point
so actually you have a specific region on this pic.
so use DrawImage() of a graphics object with its overloads to draw specific regions of a picture
Amr Abdel-Mohsen Hafez
Software engineer
Cairo
E g y p t
|
|
|
|
|
I`m already doing this.. but it doesn`t work!
Doing this, I take all the pic and i what just a point of it.
How do I copy a point from a picturebox?
thanks!
cheers!
|
|
|
|
|
your post is not clear to me,..
But i will reply as i understand ur words..
i meant to get the clicked dimensioned x,y points w.r.t the pictureBox then
calculate this x,y again for the embeded piture and use DrawImage to draw the obtained small region or even pixel or point
Amr Abdel-Mohsen Hafez
Software engineer
Cairo
E g y p t
|
|
|
|
|
Hello...I have my code(algorithm) in visual studio 2005 and I want to make an interface in c# for this code. Can I load(run) my code from c++ in c# and make the connection with the interface in c#, if yes how can I do this..thanks
lavi
|
|
|
|
|
The only way to do this is to use C++/CLI so that you can write a dll which can be consumed by a different (.NET) language.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
so ....microsoft visual studio 2005 it's not good for this...?I don't now what other version of c++ I can use who can create me this dll...
lavi
|
|
|
|
|
microsoft visual studio 2005 is the ONLY compiler that allows you to write C++/CLI code.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The only way to do this is to use C++/CLI so that you can write a dll which can be consumed by a different (.NET) language.
k...in this case which dll can I use(run) from C++ in C#, so that I can run my code(made in c++) in C#.....I don't know because it's the first time when I work with C#...sorry for my persistence...or if this dll is not yet created in c++ haw can I create it?
|
|
|
|
|
k...in this case which dll can I use(run) from C++ in C#, so that I can run my code(made in c++) in C#.....I don't know because it's the first time when I work with C#...sorry for my persistence...or if this dll is not yet created in c++ haw can I create it?
|
|
|
|
|
As CG said, you will have to create a C++ DLL that exposes your classes/interfaces. Once you have the DLL, you can consume it from your C# project.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
ok....I understood that....but I don't know how to do this dll....can you help me...please
|
|
|
|
|
Hey guys
I am trying to create an install file for my solution. My solution has five projects, four of which are business layers and data access layers. The UI project has references to the debug dll's of the other projects and all works fine in debug mode. However when I build the setup project and run it on another computer it is still trying to reference the debug dll's rather than those installed. What am I doing wrong? I thought the setup project automatically changed these references!? I am using the setup wizard project to create the relevant files.
Thanks in advance
|
|
|
|
|
I am pretty sure that the setup project only points to the dlls you tell it to include. I am pretty sure you need to remove the old debug dlls from the setup and add the new release dlls.
Ben
|
|
|
|
|
Ben is absolutely right and just want to add one more thing make sure u have taken all resources
with the setup used by released Dlls
Cheers
Anuj
|
|
|
|
|
How to read image file ? I want read a image file, output is 3 matrix 2x2 following R G B? Help me!!!
ok
|
|
|
|
|
To read a bitmap
Bitmap bm = Bitmap.FromFile("myfile.jpg") or Bitmap bm = new Bitmap("bm.tif");
To read the RGB values, read my image processing articles on this site.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Could someone give me a link or a couple to some good articles on MFC serialization?
Thanks in advance!
Keshav Kamat
India
|
|
|
|
|
Keshav V. Kamat wrote: Could someone give me a link or a couple to some good articles on MFC serialization?
I don't know of any. But I'm sure the good folks in the C++ / MFC[^] forum would!
|
|
|
|