473,800 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

2
4,359
thread by: jonpb | last post Jun 27 '08 by: jonpb
Using .NET 3.5, I need to pass an array of structs as parameter to a C++ unmanaged function. The C++ dll stores some data in an unmanaged cache, the function writes the values into the array of structs. The array of structs are allocated by C#. If I pass the array without 'ref' it works fine on the C++ side, but after returning to C# the...
1
1,267
thread by: Cdude | last post Jun 27 '08 by: Peter Duniho
I need to add headers to a existing xls file.Then after that i can update my dataset into the xls file.Can you explain how i could do this.
2
1,236
thread by: =?Utf-8?B?cmF1bGF2aQ==?= | last post Jun 27 '08 by: =?Utf-8?B?cmF1bGF2aQ==?=
c# vs 2008 what's the best way... need to apply changes to some methods in many source files (C#.cs). (Pseudocode) here is how is done manually: 1. open the source (thisClass.cs) 2. find/locate in source socde 3. change lines (could be extensive code) 4. save
4
227
thread by: billsahiker | last post Jun 27 '08 by: billsahiker
Where do I find the unicode values for math operators like equal, minus and plus sign and how to I check if the value of a byte array is one of these operators? I populate the byte array from a filestream object using the Read method. So far Ihave been working with utf8 files and I just use if(byte == 61) //0x3D works also it returns...
2
1,007
thread by: Ilyas | last post Jun 27 '08 by: Ilyas
Hi all I have a List of person objects using Generics. Each person will have an Id, firstname and may have a DepartmentId I am trying to convert this list to xml. However if the person doesnt have a departmentId, I dont want to write out a departmentId attribute. However I dont know how I can achieve this... I have tried (assuming...
0
970
thread by: Peter Morris | last post Jun 27 '08 by: Peter Morris
Hi all This is driving me mad! Can anyone tell me why the Left property of my SelectImageItemControl is always zero when it should vary? The relevant code is.... public override bool Layout(object container, LayoutEventArgs layoutEventArgs) {
11
2,204
thread by: raiderdav | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Is there a common way to embed a graphic or icon into a label? I want to have something like "Press <<IMGBTN1>To Continue" or "Press <<IMGBTN2>For Help". Normally I'd just create a graphic for the whole string, but this will be translated in multiple languages and I want to keep the images generic and only translate text.
1
1,243
thread by: happy.john1234 | last post Jun 27 '08 by: Breno P. Lucena
Hi, i am a new bie in programming.I am currently doing a project that displays certain hierarchial set of data in tree view.I currently implemented this tree view to be displayed in xml file which is one of my requirement too.But, the point that i am confused is with further processing.I have to move accross tree node to recover various...
1
1,839
thread by: Venu | last post Jun 27 '08 by: Breno P. Lucena
Hi everyone, How to do pagination for a DataGridView in a Windows Forms application? Please help me. Thank you, Venu.
3
193
thread by: csharpula csharp | last post Jun 27 '08 by: Marc Gravell
Hello, I would like to know if there is a way to validate xml file using xsd or some other way for the following case: Xml element represented by string value which need to be validated against some strings domain . For example the element can be pnly one of : "Applicatipn","User" or "None" any other value need to throw exception in...
2
1,153
thread by: csharpula csharp | last post Jun 27 '08 by: Martin Honnen
Hello, What is the best way to implement in c# xml validation with a given xsd? Thank u! *** Sent via Developersdex http://www.developersdex.com ***
3
8,188
thread by: Dave | last post Jun 27 '08 by: Steven Cheng [MSFT]
string m_request = some_web_page; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(m_request ); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Which works fine, but I need to set and send a cookie with the WebRequest. How do I do that?
7
2,109
thread by: colin | last post Jun 27 '08 by: colin
Hi, Ive written a 3dmodel editor, and it works fairly well it harldy uses any cpu exept when its loading a texture from bitmap in the debugger, at all other times it hardly uses any cpu but from the debugger even in release mode it takes a second or so to load a 65k texture, with a 2ghz pc this is 10k instructions per pixel ! I cant...
6
1,304
thread by: StreamLogic | last post Jun 27 '08 by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?=
All, I'd like to hear how other developers/architects keep track of old scripts, code snippets, relevant URLs, etc. I think most developers have an area where they keep reusable code they would like to use again. Year after year, we all develop things that can be reused in various projects. Do you simply have a file system folder where...
6
1,359
thread by: BillG | last post Jun 27 '08 by: Nathan
I have the following defined. enum DisplayEventType{DISPUTE = 0x0001, ACTION = 0x0002, QUESTION = 0x0004); DisplayEventType dEventType; if(DisputesCheckBox.Checked) dEventType = dEventType & DisplayEventType.DISPUTE; if(ActionCheckBox.Checked) dEventType = dEventType & DisplayEventType.ACTION;
0
794
thread by: sebastien.gourdet | last post Jun 27 '08 by: sebastien.gourdet
Hi, I'm writing an activex to ba called within HTML pages from IE. In this activex, I need to access the associated document, but don't find how to get it. I tried with Assembly functions (GetEntryAssembly, GetCallingAssembly, GetExecutingAssembly), but these functions only point to my activeX, so I'm not able to get the relevant IE...
5
1,042
thread by: csharpula csharp | last post Jun 27 '08 by: csharpula csharp
Hello! I have inheritance between classes which are the result of xml serialization. My question is how can I insure in serializaion stage that the hierarchy in xml is according to inheritance hierarchy in classes? Thank you very much!
0
1,001
thread by: Peter Morris | last post Jun 27 '08 by: Peter Morris
I am using LoadLibrary WinAPI to load a DLL written in Fortran :-) This DLL uses a common block approach to input/output. This works fine in a single-user environment but I am now considering writing a web front end for my app. Is there a way to get LoadLibrary to load a completely new instance of the DLL into memory rather than sharing?
5
1,024
thread by: CSharper | last post Jun 27 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
I have an asp page (please don't ask me why), I would like to consume a .net web services. What is the best way to consume the web service? Is it using com component or using vbscript? Could the experts shead some light into this dark area for me? Thanks always.
3
3,510
thread by: Chevron Boyde | last post Jun 27 '08 by: Chevron Boyde
Hi all I have a function setup in my Bus Logic Layer similar to the following function ProcessOrders function InsertOrder function InsertOrderItems I need to be make sure all functions use the same Transaction (Enterprise Lib DbTransaction object) between method calls.
0
1,158
thread by: Anup Daware | last post Jun 27 '08 by: Anup Daware
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I set my custom Remember be cookie on the login page. Following are the details: 1. Authentication mode is ‘Forms’ 2. This issue is reproducible...
5
2,225
thread by: =?Utf-8?B?amlt?= | last post Jun 27 '08 by: Rick Lones
If I assign an attribute using property name/value pairs such as where stringVal is a string C# generates the name\value pair using hex values 01 00 01 00 54 0E 09 73 74 72 69 6E 67 56 61 6C 03 6A 6F 65. I've determined 54 is a delimiter between properties and the next value OE represents the string type. Is there a complete table of hex...
1
989
thread by: Willian Lopes | last post Jun 27 '08 by: Willian Lopes
Hi everybody. I´m starting with C# and .NET. So, I have some difficulties with some codes. I´m already a programmer and I´m migrating from Delphi to C#. My questions are: 1) Into a form I´ve made my connection string and my SqlConnection variable. Now, I want use this connection to insert data from the form into table and, of course, get...
2
2,969
thread by: LVP | last post Jun 27 '08 by: LVP
Hi Everyone, I am looking to get emails from a Public Folder on our internal server using a filter from exchange server 2007 extract attachments tag or set the status on each email so I don't process it again next day I am using .NET 2.0 C# Need components, Ideas available. from MS or 3rd Party or Free
2
1,980
thread by: Ian Semmel | last post Jun 27 '08 by: Ian Semmel
If I can explain it. I have a DataGridView with say 100 rows, 30 of which will display on the screen. If I drag down the vertical scroll bar so that say row 50 is the centre row vertically and click on the row header, the row is selected ok but it is positioned at the bottom of the control as the second last row on the screen.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.