C/C++ :: Read Encrypted File Windows Form Application

Sep 27, 2013

I need to be able to actually read my encrypted file..

I have the decryption code and works perfectly when running it through console app c++.

But, the way I decrypt is to decrypt from a file, and create a new file which is decrypted.

I can't use that kind of code in my program in windows form app c++..

I need to read the encrypted text file and decrypt it in memory while using it for my program..

Some links to my codes I use at the moment.

My decryption coded in console application: [URL] ....

My decryption code edited for form application (Did not do anything) [URL] ....

And this is the code I tried to read after it got decrypted (Reading file written in combobox_selectedindexchange: [URL] ....

View 2 Replies


ADVERTISEMENT

C++ :: How To Use String Variable In Windows Form Application

Jun 15, 2013

How to use string variable in windows form application?

I'm using Microsoft Visual C++ 2010 Express And where to include libraries?

View 7 Replies View Related

C# :: MVP Design Pattern On Simple Windows Form Application

Nov 1, 2014

I'm building a Windows Form Application using MVP Design Pattern; the application is quite simple, it just calculates the sum of two number; So I have a form in which are located tree textbox: number1 number2 and result, plus a button to perform the action.

interface ICalcView {
string firstN { get; set; }
string firstN {get; set;}
string result { get; set; }

[Code] ....

Do you think that is a good base to start? Any code example to understand the execution flow and how to handle events?

View 7 Replies View Related

C Sharp :: Displaying Image In Windows Form Application

Nov 8, 2012

i want to open image in windows from application but it's not showing the image. here is my code/////

using (OpenFileDialog dlg = new OpenFileDialog())
{
dlg.InitialDirectory = "c:";
dlg.Title = "Open Image";

[Code].....

View 1 Replies View Related

C# :: Windows Form Application Using Visual Studio To Fetch Data From Web?

Aug 19, 2014

I want to write my own application which would fetch some data from a web site. I need to parse the HTML code of the web site and get the data.

About the application:A form (main form) that will contain data arranged in rows. Some of the data comes from a web site and some of it comes from a database.The data that comes from the web site needs to be updated every few seconds so I need to keep fetching the data from the web site.The main form will contain a button "add" which when clicked will add a new row. New data can be added to this row by the user.

I am not sure what to use for this. I have been writing the application as a Windows Form Application (Visual C#) but I do not know whether this is the best choice. Should it be a windows form application or web application? Should I use something else?

View 6 Replies View Related

C Sharp :: How To Save Back Color In Windows Form Application

Sep 28, 2012

I wrote this code behind a button
"
colordialog.showdialog();
File.WriteAllText("dlg.txt",this.BackColor.Name);
"
And I wrote this code in Form Load as well
"
this.BackColor = Color.FromName(File.ReadAllText("dlg.txt"));
"
but I got an error and I dont know what is this.... "Control does not support transparent background colors"

View 2 Replies View Related

C++ :: Unable To Read A Certificate In Windows Store From Console Application

Sep 23, 2014

I have been struggling to read a certificate in windows store from C++ DLL, but its not happening. from console application I can but when same code built as a DLL and tried to access from a separate console application. I think its not going to windows store to read the cert.

pCertContext = CertFindCertificateInStore((HCERTSTORE)*pCertStore, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 0, CERT_FIND_ISSUER_OF, operator PCCERT_CONTEXT(), pCertContext);
int Error = GetLastError();
if (Error == 0)
LINFO << "
Signtuare is valid
";
else
LINFO << std::hex << Error << '
' << "GetLastErrorStdStr=
" << GetLastErrorStdStr();

it returns 80092004 GetLastErrorStdStr= C a n n o t f i n d o b j e c.

View 1 Replies View Related

C/C++ :: Loading File In Windows Form - Richtextbox

Feb 7, 2015

I want to load a file to rich text box component. I have this line:

richTextBox1->LoadFile("StudentaiRez.txt", RichTextBoxStreamType->PlainText);

But I get an error when I try to pass second parameter. It says : type name is not allowed.

I probably write it wrong, but I can't remember the correct way. In examples I only see that instead of -> dot is used, but it doesn't work either.

View 1 Replies View Related

C# :: How To Apply XAML File In Windows Form

Dec 7, 2014

I need to apply theme file in windows form but I can't. When I use the code below I get error because there is no System.Windows.Application

StreamResourceInfo sri = System.Windows.Application.GetResourceStream(
new Uri("App.xaml", UriKind.Relative));
var resources = (System.Windows.ResourceDictionary)Load(sri.Stream); ;
var app = new System.Windows.Application();
app.Resources.MergedDictionaries.Add(resources);

View 2 Replies View Related

C# :: Windows Form - How To Put Double Click To Open File In Treeview

Dec 9, 2014

How can i put double click to open the file in treeview

private void button1_Click( object sender, EventArgs e ) {
XmlDataDocument xmldoc = new XmlDataDocument();
XmlNode xmlnode;

[Code] ....

View 2 Replies View Related

C++ :: Read (three Digit) Integer Representing Value To Be Encrypted

Nov 3, 2013

I have been working on some C++ code that doesn't seem to be going right. I'm wanting it to read a (three-digit) integer representing the value to be encrypted, a (one-digit) integer representing the encryption key, encrypt the value and print the encrypted value. The encrypting method used is that each digit in the given number is replaced by ((the sum of that digit plus key) modulo 10) then the first and last “encrypted” digits are swapped.

For example, if the number entered was 216 and the key given was 7, after applying the encryption procedure described the first digit (2) would become 9, the middle digit (1) would become 8 and the last digit (6) would become 3. The first and last encrypted digits are then swapped. The program displays the encrypted number: that is 389 in this case.

#include <iostream>
using namespace std;
int main() {
int isolateDigits();
int replaceDigits();
int swapDigit1withDigit3();

[Code] ....

View 1 Replies View Related

C++ :: Read All Values / Strings Form Unknown File

Nov 4, 2014

For an assignment I have to write a program which basically converts 8 bit binary numbers to ASCII and outputs the assembled text. Here's the catch:

The 8-bit binary numbers are provided by some external file (which only contains 8 bit binary numbers); the name and hence length is not known. The external file is called with a pointer upon execution

(./"conversion program" < external_file.in).

I'm getting the 8 bits as a string, calculate/convert decimals, output char type. HOW do I know when to stop the loop? If I just pick an insanely high number I get random stuff at the end; no boundaries obviousely lead to an infinite loop. Can I determine the lenght of this random ext file somehow nonetheless?

Is it possible to create a vector which dynamically adjusts itself until there are no more strings = end of the file?

View 6 Replies View Related

C/C++ :: How To Get Array Of Structure Code To Read Form A File

Dec 10, 2014

I tried to make the program read from a file text the first name or last name but o cant seem to get it. i tried alot of different ways. how can i get the array of structure code to read form a file?

#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
using namespace std;
const int NUM_STUDENTS = 17;
const int NUM_QUIZZES = 10;
const int NUM_EXAMS = 5;

[Code] .....

View 14 Replies View Related

C# :: Keypad In Windows Form

Jan 7, 2015

How to make a keypad in my windows form? Need to finish my project at school...ATM machine app..

It is just the keypad part. Do i put 10 buttons and add a textbox...

View 2 Replies View Related

C++ :: Windows Form Display Error

Mar 20, 2014

I'm fairly new to visual C++ programming in a windows form and the code displayed below works fine. However my issue is as soon as the program is running it will display "failure" on label7 as soon as the button is clicked. I understand why it is doing this as "a" is not in the textbox at this time so it reads the else line and displays the message. When I enter "a" in the textbox everything works fine and label7 changes to the right message.

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
label1->Text = "Question 1: test";
label2->Text = "A. test";
label3->Text = "B. test";
label4->Text = "C. test";

[code].....

View 4 Replies View Related

C# :: Controls In Windows Form Won't Show

Feb 21, 2015

I created a simple calculator in Win App. When I played it, the form is displayed blank. Not a single control is shown.

The only thing I've done differently is adding a Coded UI Test in my test project. This is the first time I'm going to try to add a coded UI test so I wonder if that's the cause for this.

View 4 Replies View Related

C# :: Windows Form Applications Using Methods?

Sep 30, 2014

I need to write a windows form application that allows the user to enter a credit card number and credit card type and then determines whether it is a valid number using the following rules:

1.) the first number is:

a. 4 for visa
b. 5 for master card
c. 37 for american express
d. 6 for discover

2.) passes the mod 10/ luhn check, which is calculated as:

a. from right to left, multiply every other digit by 2. when doubling a digit results in a two digit number, add the numbers to get

a single digit. ( like 6 * 2 = 12 therefore 1 + 2 = 3).

b. add all the single digits from 2a

c. add all the odd places from right to left in the card number

d. sum the results fro steps 2b and 2c

e. if the resulting number in 2c is divisible by 10, the card number is valid otherwise it is invalid.

The chapter is introducing methods so that is the main thing i will be using for each step.

View 1 Replies View Related

C# :: Retrieve Geolocation In Windows Form

Feb 25, 2015

how would i recieve the latitude and longitude from this xml

XmlTextReader reader = new XmlTextReader
("http://maps.googleapis.com/maps/api/geocode/json?address=" + postcode);

it should reurn the array

the php code is :

$url = 'http://maps.googleapis.com/maps/api/geocode/json?address=' . $search_code . '&sensor=false';
$json = json_decode(file_get_contents($url));
$lat = $json->results[0]->geometry->location->lat;
$lng = $json->results[0]->geometry->location->lng;
return array($lat,$lng);

View 6 Replies View Related

C# :: Export Windows Form To Excel?

May 3, 2015

I want to export the windows form in which text box,label and gridview ,gridview export to excel is working fine,but i need to export the whole form as such to excel.Is there any option to select Panel : This is my code:

private void btnExport_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Excel Documents (*.xls)|*.xls";

[Code].....

View 2 Replies View Related

C Sharp :: How To Keep Windows Form On Top Of Other Programs

May 10, 2012

I am using a windows application to start other processes. I am looking for a way to keep the form itself as the topmost program until it is closed, allowing the other programs enough load time.

View 1 Replies View Related

C Sharp :: Loading OBJ In Windows Form

Nov 3, 2012

I'm animating a human hand made in blender, so I allredy the hand, but I don't know how can I load this .obj to a windows form aplication that I'm working on. I need to load this .obj and animated .....

View 4 Replies View Related

Visual C++ :: Developing A Form Application?

Jan 15, 2014

I have a HTML code and i need to developing a form application.

issue: i have a html code and a database table , how to put this together with code and link them and peu them on server ...

View 3 Replies View Related

Visual C++ :: Decrypt Exe File That Is Encrypted?

Nov 20, 2014

i have an executable that is encrypted; it is made in Visual C++. decrypt it? what i must to look for? I have some kind of files (.req extention) that have the content encoded by password type.

View 2 Replies View Related

C++ :: Using Variables To Access Objects In Windows Form

Dec 4, 2014

Alright, so I'm making a windows form with a few hundred buttons, and one button will change color based on data the program receives over a socket. This is what I have, and it kind of works, but I don't want to have to make another if statement for all 260 buttons.

void hitmiss(std::string u){
std::string^ ind = reccdata2();
if (u == "button6"){
if (ind == "1"){
this->button6->BackColor = System::Drawing::Color::Red;
this->textBox2->Text = L"hit";

[Code] .....

What I want to do is make it more like

void hitmiss(System::String^ u){
std::string^ ind = reccdata2();
if (ind == "1"){
this->u->BackColor = System::Drawing::Color::Red;
this->textBox2->Text = L"hit";

[Code] ....

But it returns the error that u is not a part of Form1.

View 3 Replies View Related

C# :: Create A Windows Form That Acts Like A Taskbar?

Apr 6, 2014

I am trying to create a windows form that acts like a windows taskbar. So i found this on the web Link so i have tried using it.

But when i try and edit the form in the form designer in visual studio none of the changes i have made appear when i debug the form. It just appears as a blank grey box at the top of my screen. What am i doing wrong?

View 8 Replies View Related

C Sharp :: Display Google Map In Windows Form

Jun 1, 2012

I have to display google maps in a windows form. I managed to display the map in the form like this link: [URL] ...

But i have to display only the frame with the map in the form..not the whole page.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved