473,507 Members | 5,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read encrypted file windows form application c++

3 New Member
Hello!

I need some help to being 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 help to read the encrypted text file and decrypt it in memory while using it for my program..

Would appriciate for help.

Please ask any questions and I will answer them :)

Edit::

Some links to my codes I use at the moment.

My decryption coded in console application:
http://pastebin.com/UVZiUdzc

My decryption code edited for form application (Did not do anything)
http://pastebin.com/YAW7D00S

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

http://pastebin.com/bswQVsaX
Sep 27 '13 #1
2 1963
weaknessforcats
9,208 Recognized Expert Moderator Expert
I'm not sure I understand your problem.

I mean that I could write a function that takes a pointer to an array as input and decrypts the array into another array that's also an argument.

Then I wouldn't care where the input came from. Or where it's going.

Maybe a function like that could be embedded in your console app and also used in your Windows program.
Sep 27 '13 #2
xakzyy
3 New Member
Well, as I am not good at explaining, I shall try my best..

I have made a program which have (for now) 4 items.

1 combobox
3x textbox

the combobox contains following words:

WordOne
Testing
Example

In the Text file I got this:

Wordone"One"Two"Three
Testing"Try"Test"ing
Example"Ex"Sample"Result

So when I select Testing in combobox,
The following text is written in each textbox.

each " make the next work a new string.

Anyways..

My coding is all coded in the combobox, since it is used with comboBox1_SelectedIndexChanged.

So now I got the text file encrypted.
I tried to decrypt it by coding in form1_load void.
But the only way I can make the combobox to read the decrypted text file is if I by decrypting it in form1_load, I create a new text file.

I would want the program to decrypt the encrypted file without having to create a new file for combobox to read.

I hope this will help you some.
Sep 27 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1622
by: David | last post by:
So I'm a new user to Visual Studio .NET. I'm having a problem with an initial setup of a Windows Form Application for a Visual C++ Project. The Windows Form Application (.NET) template is not...
0
2503
by: forge | last post by:
Installing Merge Modules from C# Windows Form Application (not using a setup and deployment project) Hi, Currently, we have an InstallShield project that creates a setup.exe that only...
1
2185
by: Dean R. Henderson | last post by:
I have a Windows library that I bind into a Windows Form application and into an ASP.NET Web Application. I have a procedure in the library that executes a DTS Package. I have also used...
4
7056
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
3
2959
by: Henry Seymour | last post by:
I've developed a .Net Windows Form application and used the Click-Once Deployment. In that application I would like to allow the user a click-once method of uninstalling it. I do not find an...
0
1104
by: Reidar | last post by:
I have made a simple windows form application and want to publish it on the web. This deployment package contains 3 files and a folder. When 'the installer' downloads the setup-file and run it, I...
1
2220
by: Dave | last post by:
Hello all, I have an application that is accessing files from a mapped drive. I have full access to the share that is mapped and from explorer can delete files as I need. My application needs to...
0
1267
by: querry | last post by:
Hi all, I am developing a Windows form Application in VC++.NET using the Visual Studio 2005 installed on Windows Server 2003. The UI part of the project is almost complete. I am now looking forward...
1
2503
by: Prats | last post by:
I have a windows form application developed in C++/CLR How can I verify that only one instance of the application is running on the user system at any given time. Thanks
2
2591
by: ashkan0021 | last post by:
hi, i have a solution in C#.Net that includes 2 project and ASP.net & A Windows form application project, i want to open some pages of my asp.net project in my windows application, i'd be realy...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.