|
Clicking on the Export button will show a window in which to set the name of the exporting file. The Field delimiter will also need to be specified (the column separator character) and you will also be able to specify whether First row contains field names. Finally, you’ll be able to select the fields to be exported and, after clicking on the Next button, exporting process will start.
|
|
|
|
|
Smells like an assignment. Anyway, Google is your friend as well as codeproject.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi, my whole question is in the subject... In regular desktop framework i can just construct my own cursor. but when working with CF i noticed that it's impossible, because no constructor is exposed. Nonetheless there are programs which can do this. How? I have no clue. Perhaps you can help me thanks guys
|
|
|
|
|
Hi All,
I am new with VS 2008 and WPF application. so i am making a WPF Application but now i have to add "tab bar" like office 2007 instead of menues.
can anyone please tell me how to add tab bar on main window of WPF application.
Thanks
Bankey
|
|
|
|
|
|
Hi,
Can anyone of you, tell me how to call c++ functions from c# program?
I have a C++ dll, in which i have some functions, now i want to call them from my c# code. Please tell me how can i do this. If possible provide me sample code n all.
Thank you in advance
Bye,
sree
sree
|
|
|
|
|
You need to write a wrapper for C++ dll in C#. Use DllImport[^] attribute.
|
|
|
|
|
Hi Navaneeth,
I have tried it, but i ended with an exception " unable to find an entry point named function-name in dll".Can u provide some more detailed information regarding this.
sree
|
|
|
|
|
The C++ function name will be mangled, see here[^].
Alternatively you could wrap the DLL in a inprocess COM object and use COM Interop to use it.
If you want to avoid issues with the Name Mangling (which is non-standard accross compilers) then you need to write a C DLL, rather than a C one.
regards,
|
|
|
|
|
Hey Guys,
I just got the scariest Exception I've ever seen!
It reads... AccessViolationException Was Unhanded, Attempted To Read Or Write Protected Memory. This is often an indication that other memory is corrupt.
In Visual Studio It points out Application.Run(new frmMain()); As the culprit
I have no idea why this happens, it seems random because i call only one method and it works most of the time. Even when i do get the Exception the program got around to logging data in my database (thhis is the 2nd last step of the process I'm coding) So im thinking it might be where i call These methods...
cmd.Dispose();
newSqlConn.Close();
newSqlConn.Dispose();
But i might be wrong, i still need a way to replicate the damn error so that i can step though the code and see exactly where it breaks.
So my question is this, have any of you ever come across this error? Why does it happen and where do u think i should start looking to fix it?
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
I've come across it when painting to picture boxes containing a bitmap. I was attempting to write colour to a segment of the box but I forgot to convert the bmp back from monochrome after some processing I did, also attempting to point at a segment outside of the bounds of the bmp caused this (but that was more obvious to spot). Other than that, I haven't come across it before.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
i do no painting in this particular program...
im getting data from an external device and writing it to my database, the weird thing is that it works most of the time. i wish it gave me more info on whats going wrong...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Unfortunately I can't help then, that's the extent of my experience with this exception, hopefully someone else will be along shortly to help you out
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
i hope so too,
thanx tho
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Exceptions often get thrown in Application.Run . I *think* its just the exception bubbling up to the top level handler. You could try putting methods further up the call stack in exception blocks and make sure you've got first chance exception throwing switched on in the debugger to narrow it down a bit.
You must be using some sort of interop or 3rd party component no?
Regards,
Rob Philpott.
|
|
|
|
|
i am, im using an SDK provided by the manufacturer of the external device im getting data from. its a fingerprint scanner by the way.
without it i cant communicate with the device...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Ah, what form does this SDK take and how do you call it?
Regards,
Rob Philpott.
|
|
|
|
|
its a class, first i add a reference to the project, then a using zkemkeeper; , then i make an instance of the class and the call methods from that instance in this fassion.
private void button1_Click(object sender, EventArgs e)
{
CZKEMClass zkSDK = new CZKEMClass();
if (zkSDK.Connect_Com(1, 1, 115200))
{
if (zkSDK.ReadAllGLogData(1))
{
int badgeNo = 0;
int verifyMode = 0;
int inOutMode = 0;
string dateTime = "";
while (zkSDK.GetGeneralLogDataStr(1, ref badgeNo, ref verifyMode, ref inOutMode, ref dateTime))
{
MessageBox.Show(badgeNo + "\r\n" + verifyMode + "\r\n" +inOutMode + "\r\n" + dateTime);
}
}
zkSDK.Disconnect();
}
}
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Hmm. Is that a normal .NET class or a COM wrapper?
If you've defined some COM/unmanaged interop and you haven't got it quite right things like this can happen. Memory can get corrupted and your application can leak. Usually horrid things like calling conventions and the like.
If you're just using this 3rd party stuff without defining any interop yourself I think you can probably assume that is a problem with that and not you. Managed code just can't raise exceptions like the one you're getting.
Regards,
Rob Philpott.
|
|
|
|
|
that is literaly all i do hey...
the reference i add is a dll and while hovering over it it says "active x control for zk embedded fingerprint T7A system"
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Harvey,
When using classes from interop assemblies (like CSKEMClass) you, as a developer, are responsible for cleaning up any resources you use in your program. Not doing so might cause AccessViolationExceptions and will leak memory because the memory isn't freeed properly.
Try using the following pattern:
CZKEMClass zkSDK = new CZKEMClass();<br />
zkSDK.Disconnect();
<br />
Mashal.ReleaseComObject(zkSDK);
Hope it helps.
|
|
|
|
|
Hey there
thanx for the the suggestion, which namespace mast i reference to get Marshal? All i see in intellisence is MarshalByRefObj
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Harvey,
It's found in the namespace System.Runtime.InteropServices
Update on the pattern:
SomeInteropClass sic = null;
try
{
sic = new SomeInteropClass();
}
finally
{
if (sic != null) Marshal.ReleaseComObject(sic);
}
Good luck!
|
|
|
|
|
i am working with a crystal report and i have got a problem. IN the given below code i'm mapping formulafield ["HOTEL_SRV_TEXT"] WITH sParaFormula[10] which is an array and its value comes from the particular array. for example when the value of sParaFormula[10] is something like "balligo" it works but if the its value is "balli's" then it does not work...
if there is character like " ' " then it does not work.....
could any body help
RptSrvName.DataDefinition.FormulaFields["HOTEL_SRV_TEXT"].Text = "'" + sParaFormula[10].ToString().Trim() + "'";
|
|
|
|
|
I'm working on an application wich recieves an fax and will display the fax as an .TIFF in an image component.
But the problem is i cannot get it to work . The idea is to when an fax arrives it appearse in an grid and can be selected then either removed, opened or re-send to an email. I'm looking for someone who can help me complete this task. the programe it self is alomst finished except for that part.
Any help suggestions or code is greatly appriciated
|
|
|
|