|
You might want to consider investing in a source control system or moving this to the recylce bin. Either way, don't clutter up the forums. But I do have to catch you with this bit:
Trustapple wrote: try
{
cmdObj.Connection = conObj;
cmdObj.CommandText = "createTable";
cmdObj.CommandType = System.Data.CommandType.StoredProcedure;
cmdObj.Parameters.AddWithValue("@databaseName", nameDB);
cmdObj.Parameters.AddWithValue("@databaseTable", tableName);
cmdObj.Parameters.AddWithValue("@primaryKey", @"ClientCoCustListID");
cmdObj.ExecuteNonQuery();
}
catch (Exception ex)
{
}
finally
{
}
}
Never ever catch an exception and do nothing with it - and certainly don't have a finally block that does nothing.
|
|
|
|
|
Hi all,
I have an application written in C#, and it is using P/Invoke to access functions defined in a custom (open source) dll, written in C++. My app is running as a service at client site, and occasionally it has failed, leaving an entry in the System Event Log, and the log message hasn't been terribly helpful. Basically it has said that an error occurred in this particular module (the native C++ one), but nothing more than that.
I have the full source code for this module, and I believe all compiler settings are correctly set in the release build configuration (Generate Debug Info, Program Database etc.). What is my best shot at getting as much information about the crash when it occurs?
Obviously, I'm handling all managed exceptions in my own code.
Any help whatsoever would be great.
Regards,
Daníel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
You should be able to create a C++ / CLI mixed mode assembly that catches the native exception and then throws a managed exception back up to the C# code.
led mike
|
|
|
|
|
What is in the .NET3.x framework the "state of the art" way to implement role-based user authentication in a c# application?
I found some examples based on the "Authorization Manager" e.g. http://msdn.microsoft.com/msdnmag/issues/03/11/authorizationmanager/default.aspx
A solution with the "authorization manager" and the microsoft.interop.security.azroles.dll is from a functional view exactly what I would like to have but I suggest that it is not "state of the art" for a new application. I also found a lot of articles/examples on cardspace and concepts based on System.Security (Principal, Identity, etc.) but I don't see at the moment which of those implementation possibilities is the correct and best way for a new application. Thanks for any suggestions or hint or links on this topic.
|
|
|
|
|
rok0815 wrote: but I suggest that it is not "state of the art" for a new application.
See if this helps[^]
led mike
|
|
|
|
|
|
Member 4370898 wrote: i am fresh gruduate
I can see the education was well worth it.
only two letters away from being an asset
|
|
|
|
|
Obviously never used a spell checker either
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
huck awn fawnix rilly wurkt fer him.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Dear Friends,
This is sorath here i am fresh gruduate and developing webiste i want to know that how user can download vedios from my website and where should i add these vedios in my application so users can easily download vedios.
|
|
|
|
|
Videos are just files. Treat them like any other file.
|
|
|
|
|
Don't post the same thing twice...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi to all.
This is my first question in C# forum because I just started with VS2005 C#. My question concern resizing window. To achieve resizing controls on form I used three panels and some docking and anchoring, even add a single line of code on Resizing method on panel to force it to maintain a width of half of a form.
private void panel2_Resize(object sender, EventArgs e)<br />
{<br />
panel2.Size = new System.Drawing.Size((int)(this.Size.Width * 0.5), panel2.Size.Height);<br />
}<br />
It works but it's bad. When I resizing window this calculation (panel2.Size) is not happening always it is delayed and often jumps so it looks early bad.
BTW
In each panel (upper left and upper right) I have tree view controls, on Bottom one I placed some buttons and label's.
|
|
|
|
|
try :
Application.DoEvents();
or
this.Refresh();
or
panel2.Refresh();
after resizing the panel
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
never needed to in c#.net but i suspect you need to double buffer because your drawing to the screen it will be jumpy.
|
|
|
|
|
Do I find this (double buffer) under Properties bar in VS, because it seems I can't find it there?!
Or, I can add it in code using 'SetStayle'?
Thanks for replay
modified on Monday, March 3, 2008 4:03 AM
|
|
|
|
|
Hi,
i have got a error when i double click on ListView of .Net control,
in windows form.can any one tell me its solution.
at System.Windows.Forms.ListViewItem.set_Checked(Boolean value)
at System.Windows.Forms.ListView.WmNmDblClick(Message& m)
at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
amit
|
|
|
|
|
Don't repost. READ the reply you got to this last time you posted it.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
amit_83,
Reposting wont get an answer to you any quicker.
Regards,
Gareth.
|
|
|
|
|
Hi,
iam trying to send email to CRM contact in C# using CRM template.
My Code :
InstantiateTemplateRequest instTemplate = new InstantiateTemplateRequest();
instTemplate.TemplateId = new Guid(TemplateId);
instTemplate.ReturnDynamicEntities = true;
instTemplate.ObjectId = new Guid("F54B6128-B9DF-DC11-9EA9-0018F80B1359");// Contact's GUID
instTemplate.Subject = "hello";
instTemplate.ObjectType = EntityName.contact.ToString();
Here iam using InstantiateTemplateRequest . i wanetd to know what i need to mention for objectid and object Type. This email template i have created is for contact. I tried by giving object type as contact and objectid as Guid of recipient id. also tried with system user id..
iam getting error on
InstantiateTemplateResponse instTemplateResponse = (InstantiateTemplateResponse)Ca.ExecuteRequest(instTemplate);
as "Service unable to process request"
Please can anyone tell me what i need to specify for object id and object type.
Please reply ASAP.
|
|
|
|
|
Hi,
i have got a error when i double click on ListView of .Net control,
in windows form.can any one tell me its solution.
at System.Windows.Forms.ListViewItem.set_Checked(Boolean value)
at System.Windows.Forms.ListView.WmNmDblClick(Message& m)
at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
amit
|
|
|
|
|
|
Nice. You send us the call stack (or possibly part of one), but not the error message itself. Therefore we don't know what the error is other than it happened at some point when checking or unchecking a list box item.
|
|
|
|
|
How can I run .net Project(C#) in Mozila Firefox instead of Internet Explorer?
Please provide me the way or Code that is needed to implement that.
|
|
|
|
|