|
Your Main method is static, and your oLibraryApp is an instance member. You don't have an instance of clStartup.
Declare it as static.
Also ditch the silly prefixing, it reduced legibility of your code.
|
|
|
|
|
Hey guys,
I've so far been unable to find a way to output a video to VGA (preferably using DirectShowNet library but if not any way would be better then none ), done lots of googling and just cant seem to find anything.
Can anybody help/give some suggestions?
Thanks,
DarthDie/Wayfarer14
|
|
|
|
|
|
hi,
how can i remove the header row and header column from the datagridview? (or make it not visible whatever)
|*|*|*|*|*|*|*|*|*|
|*|
|*|
|*|
|*|
|*|
thanks
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
set ColumnHeadersVisible = false
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
I am trying to hide/unhide a calendar that I created inside a gridview. I would like to get it hidden when I click the "Update" option in the gridview. Now after click the "Update" the calendar comes up because I don't have any code defined.
I was thinking if I add some code inside the RowCommand event it could works but I was unable to find the control. I tried this but I got errors in the syntax.
Calendar Cal = (Calendar)Gridview.Findcontrol("Cal1")
Cal.Visible = false;
P.S. I created a button named "CalMABD" to bring the calendar up after click it I tried adding a "onclick" event but I have the same issue to findcontrol of the calendar.
Here is the HTML
<asp:templatefield headertext="MABD" itemstyle-horizontalalign="Center" xmlns:asp="#unknown">
<itemtemplate>
<asp:label width="60" font-size="Smaller" id="LabelMABD" runat="server" text="<%# Eval(" mabd")="" %>"="">
<edititemtemplate>
<asp:textbox width="60" font-size="Smaller" id="txtMABD" runat="server" text="<%#Bind(" mabd")="" %>"="" autopostback="true" ontextchanged="Deltaprojected_OnTextChanged">
<asp:calendar>
ID="Cal1" runat="server" OnSelectionChanged="Cal1_SelectionChanged"
BackColor="White"
BorderColor="#999999" CellPadding="4" DayNameFormat="Short" Font-Names="Verdana"
Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px" >
<selecteddaystyle backcolor="#666666" font-bold="True" forecolor="White">
<todaydaystyle backcolor="#CCCCCC" forecolor="Black">
<selectorstyle backcolor="#CCCCCC">
<weekenddaystyle backcolor="#FFFFCC">
<othermonthdaystyle forecolor="#808080">
<nextprevstyle verticalalign="Bottom">
<dayheaderstyle backcolor="#CCCCCC" font-bold="True" font-size="7pt">
<titlestyle backcolor="#999999" bordercolor="Black" font-bold="True">
<asp:templatefield itemstyle-horizontalalign="Center" xmlns:asp="#unknown">
<edititemtemplate>
I will appreciate any help on this! Thanks
Daniel HH
|
|
|
|
|
Try the ASP.NET forum, not here.
|
|
|
|
|
Hi,
Suppose I have a SqlCommand as follows:
SqlCommand cmd = new SqlCommand();
cmd.Connection = <my connection="">;
cmd.CommandText = "Insert Into MyTable (Name, Surname) Values (@Name, @Value)";
cmd.Parameters.AddWithValue("@Name", "David");
cmd.Parameters.AddWithValue("@Surname", "Larkin");
cmd.ExecuteNonQuery();</my>
This will end up with the following SQL being executed : "Insert Into MyTable (Name, Surname) Values ('David', 'Larkin')"
Is there any way to actually see the SQL that gets executed? Something like cmd.ExecutedStatement or similar?
Thanks,
dlarkin77
|
|
|
|
|
You can use sql server profiler to see actual query. I'm not aware of other ways to see it.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
You have to look at the database to see what's going on. The Performance Analyzer will tell you what's going on because you can use it to watch the activity on the database.
|
|
|
|
|
I'll look into SQL Server Profiler and the Performance Analyzer. Thanks very much,
dlarkin77
|
|
|
|
|
|
hello
iam creating interfcae on my progect which have genrics type i want some of that generics to be nullable
this my interface start
public interface MainInterface <t,>
i want idtype to be nullable
but i don't know how create that in interface with generics datattype
thanks
md_refay
|
|
|
|
|
You seem to be missing information from your query - like the bit after t,. Could you please post that again? BTW - if you want something nullable, you can always put a nullable constraint in there, such as public class MyClass<T> where T : INullable .
|
|
|
|
|
Pete O'Hanlon wrote: if you want something nullable, you can always put a nullable constraint in there, such as public class MyClass<t> where T : INullable.
You have to mention though that INullable belongs to the SqlTypes namespace, so it can't be applied to the standard C# nullable types.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Specify that the generic type has to be a value type, then you can make a nullable type from it:
public interface MainInterface<t> where T : struct {
public T? SomeMethod();
public void SomeOtherMethod(T? info);
}</t>
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
localization and Globalization translates a word or sentence in a predefined word or sentence but what should i do if i want to create text according to the pronunciation of the sentence or the word in any other language.
like
"How are you" is equivalent to "comment soyez vous" in French (France), and is equivalent "aap kaise hain" to in Hindi (India).
it can be done with localization and Globalization
but what if i want how are you to be write down in French (France) according to pronunciation and the entered text is not predefined or static it will be passed by user at runtime.
|
|
|
|
|
This is called translation and a pain in the *** even for advanced services like Babelfish[^]. Basically you have to examine all words, put them into a context, find a matching idiom and lots of other stuff to produce a good (in most cases yet still not perfect) translation.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanx Greeeg for ur reply but is'nt that the longest way to achieve the target,,,,plz suggest some short way.
regards
rahul adya
|
|
|
|
|
You can of course translate word by word, but this will produce horrible results.
For good translations you need to take the context into consideration the words are in.
Also idioms have different meanings in other languages so translating them word by word will also not produce good results.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
There is no short way to solve this issue. This isn't an easy or quick task to solve, so you shouldn't look for quick fixes.
|
|
|
|
|
ok,,,,,yes i think so
thanx for ur replies
|
|
|
|
|
i tried with cryptEncypt and cryptDecrypt function. Below are the key function which i used to get the publc and private key from certificate
Please check my code.. it not working (its in c# .net)
// create 128 bit hash object
if (!WinApi.CryptCreateHash(hProv,
WinApi.CALG_MD5, IntPtr.Zero, 0, ref hHash))
Failed("CryptCreateHash");
// add passphrase to hash
byte[] keyData = ASCIIEncoding.ASCII.GetBytes(passphrase);
if (!WinApi.CryptHashData(hHash, keyData, (uint)keyData.Length, 0))
Failed("CryptHashData");
// create 40 bit crypto key from passphrase hash
// if (!WinApi.CryptDeriveKey(hProv, WinApi.CALG_RC2,
// hHash, WinApi.CRYPT_EXPORTABLE, ref hKey))
// Failed("CryptDeriveKey");
// Generate new key pair
//WinApi.CryptImportKey(hProv, keyData, (uint)keyData.Length, 0, 0, ref hProv);
// Get a handle to the key exchange key.
if (!WinApi.CryptGetUserKey(hProv, 1, ref hProv))
{
uint dwResult = WinApi.GetLastError();
// printf("Error %x during CryptGetUserKey!\n", GetLastError());
//goto done;
}
if (!WinApi.CryptImportKey(hProv, keyData, (uint)keyData.Length, 0, 0, ref hProv))
{
uint dwResult = WinApi.GetLastError();
}
if (!WinApi.CryptGenKey(hProv, WinApi.CALG_RC2, WinApi.CRYPT_EXPORTABLE, ref hKey))
{
uint dwResult = WinApi.GetLastError();
//MessageBox("Error CryptGenKey() failed.", "Information", MB_OK);
// return;
}
// if (!WinApi.CryptGenKey(hProv, WinApi.CALG_RC2, WinApi.CRYPT_EXPORTABLE, ref hKey))
// {
// Failed("CryptGenKey");
// }
|
|
|
|
|
Suresh Ramasamy wrote: Please check my code.. it not working
Welcome to CodeProject
Please take the time to read this handy Forum Guidelines article[^] Pay particular attention to item #4.
led mike
|
|
|
|
|
Apologies for the vague thread title, the following is a tad complicated to summarise well. Anyway, enough excuses...
Lets say I have a multi tier application that consists of 1 client and 2 server applications (A & B). Both servers have remoting listener services each of which are entirely self contained and do not share any common sinks, both remoting frameworks contain a custom encryption sink (each of which are entirely independent implementations)
In my current setup, the client pushes all its requests to server A. Some of these are handled within A others require a server A to server B remoting call.
Now here's the problem:
When server A is invoked by the client and this requires a remoting call to server B the call from A to B fails with a CryptographicException. It seems that for some reason the A to B encryption sink is not being called, so when B receives the data it cannot decrypt as the format is invalid.
Does anybody have any ideas of what could be happening here?
p.s. Interesting if I code the client to remote directly to A or B then these calls work without any issues.
modified on Wednesday, September 10, 2008 1:05 PM
|
|
|
|