Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Triangle with smooth corners Pin
Guffa16-May-07 3:35
Guffa16-May-07 3:35 
GeneralRe: Triangle with smooth corners Pin
Blubbo16-May-07 3:51
Blubbo16-May-07 3:51 
GeneralRe: Triangle with smooth corners Pin
Seishin#16-May-07 4:46
Seishin#16-May-07 4:46 
GeneralRe: Triangle with smooth corners Pin
Blubbo16-May-07 5:00
Blubbo16-May-07 5:00 
GeneralRe: Triangle with smooth corners [modified] Pin
Blubbo16-May-07 7:26
Blubbo16-May-07 7:26 
Questionhow to get the current version's assembly number` Pin
pashitech16-May-07 2:22
pashitech16-May-07 2:22 
AnswerRe: how to get the current version's assembly number` Pin
Anil Ch16-May-07 5:37
Anil Ch16-May-07 5:37 
GeneralRe: how to get the current version's assembly number` Pin
mike montagne16-May-07 6:01
mike montagne16-May-07 6:01 
Nice to find an expert on an important function. y any chance, do you know if the following snippet is how to get the hinstance we should pass to Bitmap.FromResource()?
<code>               String s = "MT_ConfirmREFRESH";
               IntPtr h = Process.GetCurrentProcess( ).Handle;

               try
                    {
                    Glyph1.GMap = Bitmap.FromResource( h, s );
                    }
               catch
                    {
                    throw new Exception( "Bitmap resource " + s + " not found from process handle " + h.ToString( ) + "." );
                    }
</code>
Documentation indicates that hinstance is supposed to be "A handle to an instance of the executable file that contains the resource." The snippet is part of a method of a class belonging to a .DLL to which the resource(s) have been added by the visual Project.Properties... Add existing file... process. When this code fails, the FCL message only indicates that "the" (a) parameter is not valid. The resources ostensibly exist. I assume the handle value is the most probable candidate for the problem, unless there is some problem with the registration of the resources which I am not aware of.

Much thanks,

m
GeneralRe: how to get the current version's assembly number` Pin
mike montagne16-May-07 6:15
mike montagne16-May-07 6:15 
GeneralRe: how to get the current version's assembly number` Pin
Martin#16-May-07 7:02
Martin#16-May-07 7:02 
GeneralRe: how to get the current version's assembly number` Pin
mike montagne16-May-07 9:01
mike montagne16-May-07 9:01 
GeneralRe: how to get the current version's assembly number` Pin
Martin#20-May-07 7:41
Martin#20-May-07 7:41 
Questionb/w server's request and response Pin
kalyan_241616-May-07 2:10
kalyan_241616-May-07 2:10 
QuestionAbstract Classes Pin
SPanicker*16-May-07 2:08
SPanicker*16-May-07 2:08 
AnswerRe: Abstract Classes Pin
Stefan Troschuetz16-May-07 2:32
Stefan Troschuetz16-May-07 2:32 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:04
SPanicker*16-May-07 21:04 
AnswerRe: Abstract Classes Pin
Paul Brower16-May-07 2:39
Paul Brower16-May-07 2:39 
GeneralRe: Abstract Classes Pin
jayart16-May-07 2:56
jayart16-May-07 2:56 
GeneralRe: Abstract Classes Pin
Guffa16-May-07 4:06
Guffa16-May-07 4:06 
GeneralRe: Abstract Classes Pin
Le centriste16-May-07 7:45
Le centriste16-May-07 7:45 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:10
SPanicker*16-May-07 21:10 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:05
SPanicker*16-May-07 21:05 
AnswerRe: Abstract Classes Pin
Rahul8316-May-07 3:42
Rahul8316-May-07 3:42 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:09
SPanicker*16-May-07 21:09 
AnswerRe: Abstract Classes Pin
LogiPro10125-Jan-09 11:28
LogiPro10125-Jan-09 11:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.