|
Nah, I did that one in two weeks, though I did use a console app to simulate the graph
WM.
What about weapons of mass-construction?
|
|
|
|
|
Hi,
I'm trying to write a C# .NET application that can read and modify an older Borland BDE DBase file.
I can write this in Delphi.NET using the VCL controls just fine, but I would rather use C#. The thing is, the .NET bdpConnection does not allow for connections to the older BDE format.
I think I might be able to create resource in Delphi and output the DBase into a TTable and send that to the C# code, but that is a bit more of a hack than I care for in this application.
Thanks in advance for any suggestions.
Kevin
|
|
|
|
|
Create an assembly using Delphi and VCL.NET, expose an interface in the assembly that can communicate with the database the way you want. Then create a C# program that uses the assembly created with Delphi.
It isn't a hack, it's perfectly fine, it's even better than just hacking a tool together for the things you wanna do.
WM.
What about weapons of mass-construction?
|
|
|
|
|
Not sure if I should be posting here, or in the c++ forum since my app's written in c#, but the error's being generated by a win32 api call. I'm using the following 3 api calls as demonstrated in the msdn article to monitor changes being made to a folder over samba (FileSystemWatcher won't do this). In my tes app the water class works perfectly. When I use my watcher class in my main app everything is fine with one copy running. With two copies though if, FindNextChangeNotification returns false and generates errorcode 0x64006e as returned by Marshal.GetLastWin32Error(). Win32Exception.Message describes this as an uknown error, and no error codes with this large a value are listed in msdn, or winError.h. Looking at the code between my main app and my tester I'm not seeing any meaningful differences, and with an unknown error I don't know wehre to be looking. The biggest difference between the two is that when a change occurs my tester just throws up a message box, while my main app reloads all the files in the folder. (There're only a handful so the performance hit from loading everything isn't enough to justify the extra work needed to ID which file was modified).
FindFirstChangeNotification
WaitForMultipleObjects
FindNextChangeNotification
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/obtaining_directory_change_notifications.asp
|
|
|
|
|
I am making a program. When a button is clicked a new form is created (form1.IsMdiContainer = true;) and then I want to put a menu on that form1 so the user can make some choices.
How do I go about doing that? I keep getting into problems
Thanks,
FJ
|
|
|
|
|
Just simply design menu by drag-drop from Visual studio toolbox to the form1
<< >>
|
|
|
|
|
|
Thanks for the reply.
This not what I meant, if you look in the picture of the article you were kind enough to point me to you see that the big window that houses the smaller ones has menus, I want the offspring to have menus, the windows or forms that contain the picture in the article. How do I do that? That is what I couldn´t do.
Thanks,
FJ
|
|
|
|
|
Hi,
I am currently working on an encryption application. I created a windows service that watches over a directory and when a new file is added, it encrypts it.
Now here is the problem . I want to find out which user has added a file to the directory (which is o n network). Is this possible to find out which user has dropped or added the file to the directory in C#.
Thanks in advance
-Sandeep
.Net Developer
|
|
|
|
|
erm.. depending on the environment that you are using but..
..the owner of the file?
--
michael - www.code.ae
|
|
|
|
|
Hey Micheal,
Its not the file owner. The managers want to know who has dropped the file for encryption. We want the user who dropped the file into the folder in a network.
|
|
|
|
|
This information doesn't exist anywhere. Usually, depending on the network O/S, the person who dropped the file becomes that copy of the file's owner.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the info.
Is there a way to get the owner details from the file. I use windows XP.
|
|
|
|
|
Well, there's nothing in the .NET BCL that will do this, so alternate methods must be used.
Here[^] is an example in VB.NET using WMI to get the owner.
And here[^] is an example in C++.
I wasn't able to find a straight c# example.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey Micheal,
Thank you very much. I could convert the VB.NET code to C#. Instead of using WMI i used unmanaged code itself calling all the function manually. It summed up to 40lines code and works fine. Thank you very much for help
|
|
|
|
|
Hi
I am working to programmatically open outlook for reading messages.
But I am getting a security warning dialog box.
How can I disable or stop this box to coming in
thanks
swati
|
|
|
|
|
You can't disable this warning. It's there for a reason. It stops code from trying to impersonate someone and send a whole bunch of emails out, spreading a virus.
You'll have to go into Outlook, Tools/Options/Security Tab (I think!) and manually turn off the option that says "Warn me when an application tries to send mail as me."
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
There are several approaches to this issue.
Extended Mapi or third party libraries that side step the security issues.
Check out
http://www.slipstick.com/outlook/esecup.htm[^]
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
I need C# code to moderate e-mails.
If anybody has any simple code how to moderate e-mails,
I will appreciate if you will direct me to the site to download it.
Thanks.
A.Kwakye
|
|
|
|
|
What do you mean by "e-mail moderator"? I've never heard of it. I've heard of a moderating forum's posts though...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I assume you mean a spam filter. First your code needs to actually be running the mail server, then a simple reg-ex can be used to remove a lot of stuff.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Moderating emails is rather "vague". If you want a spam filter, there are many good solutions out there. If you want to block certain addresses, regardless of the "spam factor" (ex-girlfriends or so ).. you can have a mail relay tweaked. Postfix for example.
--
michael - www.code.ae
|
|
|
|
|
I need C# code to moderate e-maild.
If anybody has any simple code how to moderate e-mails,
I will appreciate if you will direct me to the site to download it.
Thanks.
A.Kwakye
|
|
|
|
|
Hi, all
I have designed an windows application in C#. I want to embed the plug-in functionality in it (like Winamp software), such that a third party can create a plug-in and can add its functionality to my application. How can I do it? What should I do extra on a simple Windows Application written in C#?
Thank you in advance.
Anindya Chatterjee
|
|
|
|
|