|
Sadly, no. The projects were accomplished by looking at the samples that came with the download, that gave me an idea of what to do. Their object model isn't convoluted at all from what I remember.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
for instance I need to do some basic things reading and writing using the usb port.
I cannot find out what endpoint should I put in BulkWrite.
|
|
|
|
|
how to write xml root element attribute string in .net(C#).like <rss version="2.0">
anybody know plz reply me
Rajendran.AL
|
|
|
|
|
I've never seen attributes on a root node, but why would it differ to any other node ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello ,
i am creating widget through rockyou.com on my site but it creating problem when i am creating widget through corkboard so can anybody help me regarding this....m pasting this code on my aspx page
<embed src="http://apps.rockyou.com/fxtext.swf?ID=29184447&nopanel=true&stage=true" quality="high" scale="noscale" width="497.715" height="174.01875" wmode="transparent" name="rockyou" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
Thanks & Regards,
Priyanka
|
|
|
|
|
rakesh_csit wrote: ....m pasting this code on my aspx page
Yet, you asked here and not in the ASP.NET forum....
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello everyone,
I recently started developing a little set of custom controls for a customer of mine.
I first began developing one control, then adding the second according to subsequent requests.. and so on. All these controls I deliver in a single, well-packaged DLL file.
All of these controls inherits the standard Control Class. But now, since there are many properties shared amongst those controls, I thought that it would have been tidier and clearer to write a class inheriting Control (let us call it MyPowerfulControl), containing all the properties that are used in all of the other custom controls, and then make my other controls inherit from MyPowerfulControl.
Nothing seemed to go wrong so far. But now there's a little issue that's bugging me: when I add my custom controls to the toolbox sidebar in Visual Studio, also MyPowerfulControl is shown (and, I kinda not want this).
I know that it's possible, when choosing which controls are to be loaded, to un-check the unwanted control. But this is an annoying task for me and my customers... Isn't there a way to tell MyPowerfulControl never to show up, even in the "Choose Control" dialog?
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
Well, I found a way out - I don't know if it's good programming practice, but it works.
I simply declared MyPowerfulControl as an abstract class, and it automagically disappeared from my toolbox.
Should this be a Coding Horror, please let me know
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
I am trying to create an application that will talk with a webservice.
This webservice needs the following information:
<request>
<EmailAddress>string</EmailAddress>
<Filename>string</Filename>
<FileData>base64Binary</FileData>
</request>
So I wrote the following:
string FileDataBase64Binary;
SoapBase64Binary base64Binary;
FileDataBase64Binary = "???";
base64Binary = SoapBase64Binary.Parse(FileDataBase64Binary);
request.FileData = base64Binary;
What should be the right code?
Any help would be greatly appriciated.
|
|
|
|
|
Where's the problem? You have written code to answer your own problem. Could you explicitly state your issue(s)?
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
The WSDL file needs <FileData>base64Binary</FileData> but I'm not sure how to convert my data from string to base64Binary.
So I wrote the following:
string FileDataBase64Binary;
SoapBase64Binary base64Binary;
FileDataBase64Binary = "???";
base64Binary = SoapBase64Binary.Parse(FileDataBase64Binary);
request.FileData = base64Binary;
Still not sure what must come by FileDataBase64Binary = "???";
Hope someone can explain to me how to do this?
The files I need to send to the webservice are .zip files containing one .txt file.
|
|
|
|
|
I want to know how can we get the url of currently runnning instances of netscape navigator through a windows application in c#.net
thanks in advance
modified on Monday, April 21, 2008 4:41 AM
|
|
|
|
|
No, you will have to expose that functionality from Netscape itself.
|
|
|
|
|
Hello all
I'm trying to run exe file from my c# code
Every ting that I did I can't load this file (if I tray other files they open with no problem like mspaint.exe )
The message that I got is that the db can't be loaded .
This is what I tray
1. Process.start(file path).
2.
Process myProcess = new Process();
myProcess.StartInfo.FileName = "file path";
//create the cmd process
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.CreateNoWindow = false myProcess.StartInfo.RedirectStandardInput = true;
myProcess.Start();
is there another way ???????
|
|
|
|
|
Sounds like the exe you're running is trying to load the db in the current path or a sub directory.
Have you tried setting the StartInfo.WorkingDirectory property? Maybe set it to the path of the exe you're executing.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Hi frends,
I have a structure in a c dll, now i want to export this particular structure into a c# dotnet application. How can i achieve that?Pls help
|
|
|
|
|
You need to redefine the struct in C# and make sure the size is the same. www.pinvoke.net has examples.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I created a web program using the dropdown cascading extender from AJAX and from time to time the error message appears below for unknow reason when I choose from the dropdownlist.
You have any idea or work aorund for this problem?
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Dabsukol
|
|
|
|
|
Telling the folks in the ASP.NET forum the exact error seems like a good plae to startt
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am clubbing multiple word documents into a single word document. But sometimes the document is corrupted and this stops the whole application. How to skip the corrupted doc and proceed with other documents using C#.net? Please help
Nitin Raj Bidkikar
|
|
|
|
|
Put a try { } catch { } block around the statement that is getting the error, and just ignore it (or catch the specific exception and just ignore that one).
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I added a keyboard hook by calling the SetWindowsHookEx but the delegate I was passing as a parameter for the function was being garbage collected, although the delegate was declared as a global variable. I was instantiating the delegate in a method, but, after instantiating it in the constructor of the class that contained the delegate it stopped being garbage collected and the problem was solved.
While doing some research I found Chris Brumme's blog were he Is saying that it's a better practice use a delegate and call the native method asynchronously rather than pinning the delegate that was GC in the memory. Therefore I tried this approach
public delegate IntPtr SetHookDelegate(int idHook, HookProc lpfn, IntPtr hInstance, uint threadId);
SetHookDelegate myookDelegate = null;
using (Process curProcess = Process.GetCurrentProcess())
using (ProcessModule curModule = curProcess.MainModule)
{
myookDelegate = new SetHookDelegate(Win32.SetWindowsHookEx);
myookDelegate.BeginInvoke((int)Win32.HookType.WH_KEYBOARD_LL,
HookProcedure,
Win32.GetModuleHandle(curModule.ModuleName),
0, new AsyncCallback(CallMeWhenFinished), myReturnValue);
}
but the callback method "CallMeWhenFinished" is called right away and the thread on which the hook was added is finished without waiting for the delegate passed as a parameter to the native function SetWindowsHookEx. Why is the thread finished right away and not listening on the callback function?
|
|
|
|
|
razvan_dme wrote: Why is the thread finished right away and not listening on the callback function?
Because async calls are non-blocking.
|
|
|
|
|
Yea, well that's an obvious answer, my question was more like, how can I overcome this
|
|
|
|
|
Hello Everybody,
i have an application which is existing on a server, i need to create a "shortcut" on a PC on the network that when clicked access that program
if someone has an idea, or a document which can help i'll be thankfull
thanks in advance
best regards
|
|
|
|