Click here to Skip to main content
       

C / C++ / MFC

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: encrypt and decryptmvpRichard MacCutchan19 Nov '12 - 7:59 
This is a fairly obvious homework question so you should at least make an effort to do the work yourself. If you do not understand how to apply XOR to a string of characters then you should read this page[^]. Similarly, reading and writing files is a basic part of the language that can be learned by reading these pages[^].
One of these days I'm going to think of a really clever signature.

AnswerRe: encrypt and decryptmvpCPallini19 Nov '12 - 11:36 
thandy mitchell wrote:
can you please provide me with the algorithm on how to go about doing this work

The algorithm is already provided by your requirements.
Veni, vidi, vici.

Questionaccess excel data using c++memberlakshmamma19 Nov '12 - 2:05 
hi,
i want to know how to access some part of data in excel sheet and copy to text file using pure c++.....please send me a code if u know this.....
AnswerRe: access excel data using c++memberFlaviu219 Nov '12 - 2:14 
I have code that do that, but is in MFC, is good for you ?
AnswerRe: access excel data using c++mvpCPallini19 Nov '12 - 2:17 
Here at CodeProject we have an article on such topic: "Accessing Excel Spreadsheets via C++"[^]. It uses ATL and COM, I don't know if you include those libraries into the 'pure C++ world'.
Veni, vidi, vici.

AnswerRe: access excel data using c++memberJochen Arndt19 Nov '12 - 2:26 
You may use different methods to read Excel files. Which one to use depends on the version of the Excel files (XLS and/or XLSX) and if Excel is installed or not:
  1. Using Excel Automation (COM / OLE Dispatch) with the Excel type library. This requires an installed Excel on the machine running your application (which defines what Excel file versions can be read) and the Excel type library on the development machine.
  2. Using ODBC or ADO (OLE DB). These are database interfaces that handle sheets from Excel files like databases tables. Drivers for XLS files are present on all Windows systems. Drivers for XLSX files are installed by Office 2007 or with the 'Microsoft Access Database Engine 2010 Redistributable' package.
  3. Using a library. Examples are the ExcelFormat Library[^] here at CodeProject and the commercial LibXL[^] library.
 
Once you have decided which method you want to use, search for samples here at CP and in the web using the above keywords. But be prepared that reading Excel files is not done with a few lines of codes.
QuestionScroll window after zoom [modified]memberFlaviu218 Nov '12 - 22:11 
Dear coders, for few days, I struggle to solve a simple problem: to scroll the window after zooming, in such a way, that mouse position stay in the exactly same logical position ... and I didn't succeded. Frown | :(
 
The view is based on CScrollView, mapping mode is always MM_TEXT, zomming is changing by 10%. Nothing special.
 
Have you see how Window Photo Viewer (from Windows 7) work on zooming ? I want to implement the same behaviour ... does anybody do that before ? Anybody have similar code ?

modified 19 Nov '12 - 4:19.

AnswerMessage RemovedmemberFlaviu218 Nov '12 - 22:18 
Message Removed
QuestionPre commit hooks for svnmemberMukul_P18 Nov '12 - 17:41 
Is it possible to write precommit hooks for svn in c/c++?
If so how to write a hook which will ask the user to update document version everytime the user checks in the document in svn. My knowledge is limited to the fact that the .exe to be created should be named Precommit and be placed in the repository where the user performs any action in repository.Please guide me.Confused | :confused:
AnswerRe: Pre commit hooks for svnmvpRichard MacCutchan18 Nov '12 - 21:42 
SVN will automatically update the version when the document is checked in. It also provides a user API that you can interface with. See here[^] for further information.
One of these days I'm going to think of a really clever signature.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid