Topics
-
-
- Administrators
- 8 replies
- 10.5k views
I want to display a string (stored in a variable) in notepad(or any other default text editor depending upon the system). Saving to a text file is not necessary. I just want to open Notepad with an unsaved file containing the text. Please help
Last reply by PlausiblyDamp, -
-
- 0 replies
- 7.1k views
Currently I have an application (A.exe) which determines when things need to be done, when such a time arises it launches another application (B.exe) with the appropriate parameters to do the actual work required, some of which could be administrative work (installing MSI, editing registry, etc...). This all works perfectly fine in an administrative environment - but soon the application will be migrated to a restricted (user) account where the running application (A) does not have the rights to launch application (B) to the necessary work. The solution, have an administrative service (service installed when logged on as admin during software installation), and have th…
Last reply by Shaitan00, -
- 2 replies
- 4.5k views
Does anyone know how to control the size of the resulting mesh when you use Mesh.TextFromFont(). System.Drawing.Font font = new System.Drawing.Font("Arial",1.0f,GraphicsUnit.Millimeter); GlyphMetricsFloat [] glyph = new GlyphMetricsFloat[1]; Mesh m = Mesh.TextFromFont(device,font,"8",1f,0.1f,ref glyph); Setting the font size does not change anything. One solution would be to aply scaling to the world transform before rendering, but that has a tendency to do strange things with 3d lighting.
Last reply by gopagani, -
-
- Administrators
- 3 replies
- 893 views
I need to create a small program to print letters. The user simply needs to fill some fields (textboxes) and then the letter's body through a RichTextBox. Now, since Text-Justify, Bold and Italic are required for these letters, I need to find a way of printing the letters with such formatting. How can I accomplish this? How can I then print the text of a RichTextBox while maintaining its graphical structure (bold, italic and justify)? Thank you.
Last reply by EFileTahi-A, -
-
-
- Leaders
- 1 reply
- 3.4k views
I am trying to customize my sorting of a LIST using a compare_function, but for some odd reason it keeps giving me the following error: error C2064: term does not evaluate to a function taking 2 arguments Specifically, I have list created within class B which needs to be sorted, the list contains elements of type A* as shown below: Class B code: B::B() { list<A*> AList; AList.push_back(new A(ID_1, CODE_1)); AList.push_back(new A(ID_2, CODE_2)); AtList.sort(&B::compareID); } bool B::compareID(A* first, A* second) { return true; // test for now } [/Code] Just for completness the following is the code for Class A: [Code] Class A …
Last reply by snarfblam, -
-
- 3 replies
- 12.5k views
I've read some posts in this forum to open Excel from C# and most of them have this : using Microsoft.Office.Interop.Excel; i only have "Microsoft.Office" or "Microsoft.Office.Core", is this caused from the different version of the com references?
Last reply by filip, -
Hello. I am using a bound MSHFLEXGRID Control on a form. When I click the "CLOSE" button, it works fine and the form closes. But when I press ESC or ALT+C, I get the following error. Please Help
Last reply by haseebhm, -
-
- Leaders
- 1 reply
- 2.4k views
I'm having an issue using my operator<< overload, I am creating a pointer to a ClassA and storing it in a list, then I get the pointer out of my list using an iterator and when I try to cout << (*iterator) I get the address itself, I don't get the actual operator<< overload to execute ... This is a reduced version of the code to illustrate what I am doing (the full code is kind of very long)... I've got a Class A declared as follows: Header File (A.h) class A { friend ostream& operator<< ( ostream &, const A & ); private: string sRecord; }; [/Code] Implementation (A.cpp) [Code] ostream &operator<<( o…
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 1.4k views
My clients upload excel sheets to the software which need to be validates. One of the validation steps is to check the sheet for duplicate records. The following code demonstrates the method I use to make this possible. For i = 0 To xlDtSet.Tables(0).Rows.Count - 1 xlCommand2 = New System.Data.OleDb.OleDbDataAdapter("select [COL1], [COL2] from [sheet1$] WHERE [COL1]=" & xlDtSet.Tables(0).Rows(i).Item("COL1"), xlConnection) xlCommand2.Fill(xlDtSet2) If xlDtSet2.Tables(0).Rows.Count > 1 Then 'LOG ERROR MsgBox("DUPLICATE") End If xlDtSet2.Clear() Next But this makes the validat…
Last reply by filip, -
-
- 0 replies
- 3.6k views
Please delete my forum account. Thank you.
Last reply by reaper115, -
-
- Leaders
- 6 replies
- 4.3k views
The age old issue of string parsing comes up again ... I have a text file that contains lines that are SUPPOSED to follow a set format, specifically: string, string, long string int string double int The delimiters are therefore: Comma (,) for the first two fields Spaces for all other fields Strings like this would be valid: Jon, Jack, 100 CPN 5 KTE 1.00 10 Jon, Jack 100 CPN 5 KTE 1.00 10 // notice the extra spaces Whereas something like these would be considered invalid: Jon Jack 100 CPN 5 KTE 1.00 10 // missing the commas Jon, Jack, 100 CPN 5 KTE 1.00 // missing the last field "10" Jon, Jack, 100CPN 5 KTE 1.00 10 // missing …
Last reply by Shaitan00, -
-
Hi, This is my first post to the forum, it�s very informative and enjoyable really. I�m curious about Orkut and I wonder what you people think. As you know Orkut is social networking site operated by Google. It�s less popular than Facebook or Myspace and Twitter. There�s a chance that they can become more popular than Facebook? What do you think?
Last reply by Doktoray, -
-
- Leaders
- 7 replies
- 3.7k views
I'm looking for a simple control (like a Text Box or Rich Text Box) to display formatted HTML in. What I am creating is an email viewer for our server. Someone selects the message, and its Message Body will be filled into the control. The closest thing I can find (in Visual Studio 2005) is the WebBrowser control - but I don't want to give the browser a file to display. I simply want a way to show HTML formatted text (tables, unordered lists, hyperlinks, etc.). Has anyone done something like this? What could I look into as far as research goes?
Last reply by snarfblam, -
-
-
- Administrators
- 3 replies
- 9k views
I am struggling with the process of using an EXE app to access an XML source across the web. A game I play online offers the ability to access character information, item databases, etc. by using an online API. To my knowledge, here is how it works: The following URL should return an XML file that lists all of the characters on my account: http://api.eve-online.com/account/Characters.xml.aspx?userID=5050156&apiKey=13DC16F65B424DC4A9479C69A2DA9C1613A1D36EAA1F49A0B93380FAC6F55C69 Here is what I would like to do. I want to be able to receive that XML file and parse it into fields on a form. This is not ASP.NET, this is an executable with VB code pages. I…
Last reply by joe_pool_is, -
-
- 0 replies
- 1.6k views
In a background worker that will be running on our Server, I am listening for data in the form of a System.Net.Mail.MailMessage object (including attachments) to come from a client on our LAN. (The client PCs and operators on our manufacturing floor do not have an email program). This is a work in progress, so the Client Side hasn't been written yet. The plan is to save the MailMessage object to a MemoryStream, and send the MemoryStream over the network using TCP. My current obstical comes from finding a way to convert the received MemoryStream back into a MailMessage on the Server (the receiving end) so that the Server can send the message. How do I convert a Me…
Last reply by joe_pool_is, -
-
- Administrators
- 2 replies
- 2.8k views
i am a writing a program to captured a bitmap from one computer and send it to another computer on a LAN network the problem is that i alway get a prefect first bitmap pic on the picturebox on the client computer but one that follows it will be distorted with the first images i tried flushing nothing works this the server code fragment Public Sub CaptureImage() Dim data As IDataObject Dim bmap As Image '---copy the image to the clipboard--- SendMessage(hWnd, WM_CAP_EDIT_COPY, 0, 0) '---retrieve the image from clipboard and convert it ' to the bitmap format data = Clipboard.GetDataObject() If data Is Nothing Then Exit Sub If data.GetDataPresent(GetType(Syste…
Last reply by joe_pool_is, -
-
- 0 replies
- 916 views
I.E. There are two dropdown lists in a datalist itemTemplate. dropDownList1 has two values 1, 2 dropDownList2 has two values A, B On selectedIndexChange event of dropDownList1, I want to change the value selection of dropDownList2 to C, D and remove options A, B. Remember: These controls only exist while datalist is in edit mode so I cannot just refer to the names of the controls in the code behind. Does anyone have an asp.net example of how this can be done?
Last reply by sconard, -
-
- Administrators
- 2 replies
- 1.1k views
Greetings: I've an asp.net appl published to two different web svrs that use the web-config to establish a db connection. Problem is, one appl connects and the other doesn't. About the one that doesn't, there are other appls on that web svr that do connect to the same db svr w/o issue. Also, this web svr is 64bit (not sure if that's a factor). I've noticed on the conn str of the working db connection (the other appls) they use a "driver" attribute in the conn str. I did attempt to use that same driver attribute in my conn str, but no joy. BTW, the other appls that connect don't use a web-cofig, but rather, an include file for db conn str. Finally, the ac…
Last reply by BenRosa, -
-
-
- Administrators
- 1 reply
- 4.6k views
Not sure this is going to be easy to explain but ... I have a class (A) that needs to have access to a map (mapCodes), this map is the same for all instances of class(A), therefore I don't want to create an instance of the map for each instance of class A and populate it, etc .... This is my code right now: A.h (header file) class A { private: static map<int, string> mapCodes; public: A(); // constructor }; [/Code] A.cpp (header file) [Code] A::A { mapCodes[1] = "AAA"; mapCodes[2] = "BBB"; mapCodes[3] = "CCC"; } [/Code] Now, for every object of class A I call the constructor which uses the same STATIC mapCodes (which is good…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.8k views
I am Being upgraded to Visual Basic 2008 from Visual Basic 6. I cannot save my projects out to a Netware network drive. When I try I recieve a message that says the .NET framework does not consider the network drive a trusted resource and an code that is run from there will most likely have security exceptions. I can save to my local drive and run programs with no problems. I need to be able to store my projects on the network drive. Has any one else run into this problem? If so any suggestions beside running the .NET caspol utility?
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 27 Guests (See full list)
- There are no registered users currently online