Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
73% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~9K People Reached
Favorite Tags
Member Avatar for Martje

My code was working Great! until i added a vector named "resudibus"to my namespace in a windows form. #pragma once #include <Windows.h> #include <msclr\marshal.h> #include <iostream> #include <string.h> #include <vector> #include <fstream> using namespace std; using namespace System; using namespace System::IO; using namespace msclr::interop; namespace Project1 { using namespace System; …

Member Avatar for vinci.ffs
0
2K
Member Avatar for Martje

I am having a dialog box opens that lets you select a picture and then copy that picture to another folder but the problem is that i am having an error that says that i can't convert a System::String to a LPCTSTR. I searched this subject on google but i …

Member Avatar for Suzie999
0
295
Member Avatar for Martje

Hey guys, I am having a problem where i want to print a image and a simple string. i would want that when i print i get this on paper : [Click Here For Image](http://img339.imageshack.us/img339/9308/wiw.png) I looked up printDocument, printDialog and printPreviewControl from MSDN and got a few examples but …

Member Avatar for tinstaafl
0
343
Member Avatar for Martje

Hey guys, You know when you are about to buy an item online you have to insert your address, etc and after a few days you will receive the product at the address you provided. Well i am setting up an online business that offers products but i am stuck …

Member Avatar for salinajohnson
0
131
Member Avatar for Martje

I have been trying to capture the enter key in a windows.net textbox but i have no idea how to do it, i googled searched but the only examples i find are visualbasic and c# ones and when i try to do thesame thing in c++ in doesnt work. I …

Member Avatar for Martje
0
356
Member Avatar for Martje

Hi all, I add picture to my pictureBox by writing the following code : [ICODE]pictureBox->BackgroundImage = System::Drawing::Image::FromFile()[/ICODE] But how would i remove that image ones i am done using it? Thank you in advanced.

Member Avatar for Martje
0
91
Member Avatar for Martje
Member Avatar for UsSy
0
124
Member Avatar for Martje
Member Avatar for Martje
0
159
Member Avatar for Martje

How do i get the number of items a itembox is carrying? I tried [CODE]MessageBox::Show(listBox1->Items);[/CODE]but no luck Thanks in advanced.

Member Avatar for daviddoria
0
115
Member Avatar for Martje

Hey, i have a CLR proyect where i have 2 forms, i am trying to acces the form1 class via form2. what i did is that i included the header.h of the form in form.h but it failed so i went back and icluded thesame folder both of them are …

Member Avatar for jonsca
0
84
Member Avatar for Martje

I am trying to write \r\n as a string but when i do it apears as a newline. Here is the code i am using : [CODE]textBox1->Text="test"+"@\r\n";[/CODE] but it shows as : [QUOTE]test@ [/QUOTE] how would i let it show as [QUOTE]test/r/n[/QUOTE]?

Member Avatar for Martje
0
56
Member Avatar for Martje

I made a second form but whenever i try to put it in my project i get lots of errors. I am just puting : [CODE]#include "Picture_viewer.h[/CODE] but i am getting list of errors : [QUOTE]1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5934) : error C2872: 'IDataObject' : ambiguous symbol 1> could be 'C:\Program Files\Microsoft …

Member Avatar for Martje
0
232
Member Avatar for Martje

hey guys, I am using windows textbox (CLR) and i was wondering how i would replace a newline to a text. I know how to replace words, i use : textBox1->Text->Replace("first","second")); but how would i replace a new line? lets say my textbox looks like this : [QUOTE] test1 test2[/QUOTE] …

Member Avatar for Ancient Dragon
0
100
Member Avatar for Martje

I am trying to set a value in string for dateTimePicker1 but when i try the following code[CODE]dateTimePicker1->Value=System::Convert::ToDateTime("18/11/2010");[/CODE] it doesn't change anything, the old value stays thesame. How do i change the dateTimePicker to a string value?(for example : "18/11/2010") Thanks in advanced. PS: i am using c++, and a …

Member Avatar for Momerath
0
86
Member Avatar for Martje

I am trying to set a value in string for dateTimePicker1 but when i try dateTimePicker1->Value=System::Convert::ToDateTime("18/11/2010"); it doesn't change anything, the old value stays thesame. How do i change the dateTimePicker to a string value?(for example : "18/11/2010") Thanks in advanced.

Member Avatar for Martje
0
75
Member Avatar for Martje

Hello, How do i resize/stretch the image inside a pictureBox(win32 form)? i was only managed to resize/stretch the border of the pictureBox, but i want to resize/stretch the image itself, how do i do it?. Thank you in advanced.

Member Avatar for Milton Neal
0
2K
Member Avatar for Martje

Hi all, I was following a tutorial on how to make .dll's since this is my first time making 1 but when i went to build the .dll i got an error saying : [QUOTE]definition of dllimport function not allowed[/QUOTE] my header and source is simple : Header.h : [CODE]#ifndef …

0
55
Member Avatar for Martje

Hi Daniweb users, I am attempting to make a database in c++ by saving the information to a class and then saveing it to a file. but i dont know if that is a good way to do it. Here is a example picture of the database i am making …

Member Avatar for mike_2000_17
0
162
Member Avatar for Martje

How do i load a text file to a windows clr textbox? and how do i save the lines of the textbox to a file?

Member Avatar for Martje
0
123
Member Avatar for Martje

How do i search all the lines in a richtextbox for a specific string in the line and then return the line number the string correspondents in. [edit]using Visual c++ windows form CLR

Member Avatar for jonsca
0
815
Member Avatar for Martje

I have a custom .Ini file that looks like this : [QUOTE] [Main props] lives=3 name=danny [Mommy props] lives=2[/QUOTE] I want to know how to read from the "Main props" section and assign a new value to the "lives" key and also reading from the "name" key. I dont know …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Martje

I have my class in 2 different files(header and source-file) and i have 2 variables which is a const but the only way to give the const variable a value is to do it trough an constructor initializer. But how do i implement an constructor initializer in my class ? …

Member Avatar for mrnutty
0
81
Member Avatar for Martje
Member Avatar for Narue
0
34
Member Avatar for Martje

I am trying to make a list of array pointers, Is there a way that after declaring an array i can adjust the size? For example at start i create a array called : "list[2]" Is there a way that later on i can change "list[2]" and make it "list[3]" …

Member Avatar for VernonDozier
0
165
Member Avatar for Martje

Hi, I am trying to convert a char pointer to a normal char(somehow copy the strings from the pointer and pass it to the char) Here is a piece of example on what i want to do [code] #include <iostream> #include <windows.h> using namespace std; int main() { char *namen="Test"; …

Member Avatar for WaltP
0
98
Member Avatar for Martje

Hey all, how do i retrieve the names(string) of all the cd drives and usb drives available? for example if my cd/usb is named "Pencil( D: )" i want the name "Pencil" to be retrieved. Thanks in advanced.

0
45
Member Avatar for Martje

Hi all, I am trying to write a string to a multiline textbox but apearently my code doesnt do as i want... This is the code i am using : [CODE]textBox9>Lines[0]="Succes";[/CODE] But when the code executes nothing happens in the textbox, everything just stays thesame :S Am i doing something …

Member Avatar for Martje
0
428