|
hi guys,
i am a newbie coder in c# and i am trying to code a program that will be executed on his own.i think this called logic bombs.i would appreciate if someone could give an outline of what i have to do..i don't want to write me code just the idea.
thanks in advance..
|
|
|
|
|
If you really mean Logic Bomb[^] then no one here is going to help you.
If you just want a standalone exe, then yes you can. If the required .net framework is installed on the target machine and the app has no external dependancies, the exe will run fine. If it's for a machine without the .net framework then take a trip to c++ land.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Well at least users stopped hiding their intentions (see Rajdeep.net) and just come out and say they have malicious intentions.
1 for the post, but 5 for having the balls to come out and say it.
|
|
|
|
|
EliottA wrote: users stopped hiding their intentions
The exact same thought crossed my mind
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Please, please, don't mention that name (he might come back)
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
He was active recently (16th[^]) but in the C++ forum. He's probably finally figured out that he can't really write nasty stuff successfuly using a .NET language. I think C++ will be above his intellectual abilities though so the world will remain safe.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Bah, I posted a warning to the C++ members in that thread, specifically Superman who was more then helpful. Hopefully they see it and review his messages to limit the flow of direct code to him.
|
|
|
|
|
Son of a b*&^h, you where right. See few threads above.
|
|
|
|
|
Believe me, I wish I wasn't...
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
A Logic bomb is a malicious piece of code which you will find no help in creating here.
only two letters away from being an asset
|
|
|
|
|
i want to code a windows service that will start alone,like an alarm clock..if t is malicious and is called logic bomb ..sorry i didn't know it...
|
|
|
|
|
It is possible to write windows services in .net.
It does not run itself though, you have to set up windows to startup the service for you and it is not called a logic bomb.
There is a guide on MSDN here[^] on how to create services.
Simon
|
|
|
|
|
Fair enough. Simon's given you the solution you need.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
frnds,
how to move focus of one component(textbox, date picker, combo...) to other component. with ENTER key?
i tried key press with ..... code
private void txtAppfrmNo_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (e.KeyChar == (char)13)
{
MessageBox.Show("to next box");
}
}
******************************************************************
this.txtAppfrmNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtAppfrmNo_KeyPress);
****************************************************
its not working, where is the problem???
|
|
|
|
|
|
Plus that is pretty non-standard - Enter works the default key, normally OK. Why not use TAB like almost every other windows app since V2.0?
Standards, dontcha jest lurve em?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I agree with first two answers. Does it have to be the Enter key? Using the Tab key with TabIndex to indicate a specific indexing of controls is easier and more standard. Enter will cause a Submit on the form?
Regards,
Gary
modified on Tuesday, June 23, 2009 9:21 PM
|
|
|
|
|
Just got MSDN license and got c# hello world working in console mode. Now I want to load sample code but looks like a solution and I get message "one or more projects can not be located..."
file is OpenXML_SDK_HelloWorld_src.sln
Here is where I found the code:
Creation of Word 2007 document using Open XML Format SDK [^]
Creation of Word 2007 document using Open XML Format SDK
Is there some setup or other base project I need to have to open this?
I am trying to generate Word documents on the fly, with a template doc and inserting multiple lines (as in an order).
Dave
|
|
|
|
|
Did you install the Microsoft Office PIA (Primary Interop Assemblys?) Are you referencing them in your project correctly? Can we see some code? We cannot guess based off your solution name.
redistributable 2007 office PIA download[^]
|
|
|
|
|
I am mainframe programmer...bought Kernegan and Richie C book in 1980, but did not do the hello world until today...: - )
Done visual basic OO etc and worked with J D Edwards ERP with huge 50,000 line C code pgms, but this is my first .net thing. Once I get this hello world for xxx I will be off to the races. The standard console stuff does not have red wiggly underlines so I know it is recognized with my base install. But the other stuff below looks like it is not on my machine (the Open XML sdk 2.0?)
/// standard for ConsoleApplication
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/// assembly reference or directive? DocumentFormat does not appear to be found
/// http://www.codeproject.com/KB/office/OpenXML-SDK-HelloWorld.aspx
using DocumentFormat.OpenXml;
using WindowsBase;
using DocumentFormat.OpenXml.Wordprocessing;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml;
|
|
|
|
|
Are you sure you referenced OpenXml properly? That's the only thing I can think of..
|
|
|
|
|
I am pretty sure that I am not referencing it correctly.... my problem is that the tutorial says this: it is easy just add a reference... (I don't even know how to code that, and when I download the code and try to open the .sln file I get project not found. Not as easy as the old hello worlds...
But the question is: how to do it in Open XML Format SDK?
It is quite easy. At the beginning it is required to add the following reference to the project:
* DocumentFormat.OpenXml
* WindowsBase
The next step is adding the following namespaces (as using) to the code file:
* DocumentFormat.OpenXml
* DocumentFormat.OpenXml.Packaging
* DocumentFormat.OpenXml.Wordprocessing
Now focus on the function that prepares word document containing "Hello World":
I did download the MS Office PIA but not sure if I got that working right either.
I will keep hacking away ...thanks for your time !
|
|
|
|
|
I installed Open XML SDK 2.0 and figured out how to add references, so all is fixed except 1 thing:
Type or Namespace WindowsBase could not be found. (are you missing a using directive or assembly reference?)
I see I have an assembly reference for this, but...
When I look at folder C:\Program Files\Reference Assemblies\Microsoft\Framework\ v3.0 I can see the dll there, but not in the v3.5 folder, and my .csproj file has a line in it <RequiredTargetFramework>3.5</RequiredTargetFramework>
so is this a pointer problem?
Do I need to install something like WindowsBase.dll into the other folder? Or qualify the using directive path somehow?
dave
|
|
|
|
|
If you look in the Solution Explorer (use View | Solution Explorer menu to open it, if it isn't already open) select the project that couldn't be located and then press F4. That will bring up the properties window for that project and the last line will contain the path where the solution file expected to find it. Change that to the actual location of the project file (whatever.csproj). An ellipsis will appear if you click on the path, clicking it will open a file browser.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi
can any one tell me how to take backup and restore of mysql through c# using ODBC connection?
regards,
Mariam
|
|
|
|