I need to create big relatively big (1-8 GB) files. What is the fastest way to do so on Windows using C or C++ ? I need to create ... |
I have an application that monitors a high-speed communication link and writes logs to a file (via standard C file IO). The response time to messages that arrive on the link ... |
Where I work, we have a large codebase of C code that we build using Visual Studio 2005. It's separated into a variety of projects, including several static libraries. There are ... |
How would one search for files on a computer?
Maybe looking for certain extensions.
I need to iterate through all the files and examine file names.
Say I wanted to find all files ... |
A configuration file needs position of another file,
but that file is located in "C:\Program Files",
and the path with space in it is not recognized,
Is there another way to specify the location ... |
At our company, we had a computer running Outlook 2007 Business Contact Manager, with all our info tied to the SQL Server database MSSmallBusiness.mdf file. Everything was fine and dandy. ... |
I have a program written in C that allows the user to scroll through a display of about a zillion small files. Each file needs to undergo a certain amount ... |
|
Normal file related functions like fseek, ftell etc in Windows MSVC6 can handle files only upto 2GB (As per my current understanding, Please correct me if I am wrong).
I want to ... |
How do I set the modification time of a file programmatically?
OS: Windows
Programming Language: C
|
Is there an API in Windows similar to Linux's chown?
|
I have a known shared folder on another Windows PC and i have to transfer files using my ANSI C program to that shared folder using an FTP connection. I need ... |
I'm playing a little bit with PocketC by doing a simple text editor. But with this code to read and to display the contents of the file on the ... |
In C following this article (http://blogs.msdn.com/oldnewthing/archive/2006/12/21/1340571.aspx), we have succesfully been able to grab the file version information out of windows files however there are some files that seem to have a ... |
I am looking for tool that can convert .Glade (or xml) file to C source.
I have tried g2c (Glade To C Translator) but i am looking for windows binary.
Any ... |
I'm trying to write a C#/.NET application that optimizes the hard drives for our XP workstations
- Set pagefile to "No paging file"
- Reboot
- Run a defrag utility to optimize the data and apps
- Create a ...
|
anyone has an idea how to?
|
I have a very complicated program that is failing, and I've simplified it to this test set with a batch file and C program.
My C program uses ExitProcess to pass back ... |
I am trying to create a tool that will perform some "clean up" functions for some non-technical Windows users. Most of the work will be unregistering dll files from previous versions ... |
Given a file, how can I get the LBA ranges corresponding to the file?
Can FSCTL_GET_RETRIEVAL_POINTERS do the job?
|
I have reduced the problem to the following basic function which should simply print the
number of bytes in the file.
When I execute it for a file of 83886080 bytes (80 MB) ... |
I'm modifying an open-source GUI (written in c) to add a new menu item to the tray app. The new menu entry executes a file (update.exe) in the program root in ... |
Using C or a bat file, I'm trying to edit the file hosts file from c:\Windows\System32\drivers\etc but I can;t bc it is write protected.
Can you tell me what can i ... |
I'm trying to retrieve a file name from a given file handle.
I've seen that GetFileInformationByHandle could be useful, but the structure it returns does not contain any file name ... |
I am trying to redirect multiple files to a C program.
meaning, I have several input files [tests] and I want to run them all
with one script.
then write all the output ... |
I have a program that checks periodically for new files, and then process them.
Because I want to be safe that the file is not being copied over FTP, I move the ... |
how to create a file in c drive using C# in Windows7 OS
|
I have to clean up from a list of files the ones that do not exist any more. The ones whose status is indeterminable should be given a warning about but ... |
i want to know when a file is created.I want to know it's date when it is created
Windows 7 OS
|
I have this:
#include "stdafx.h"
#include <windows.h>
#include <assert.h>
int _tmain(int argc, _TCHAR* argv[])
{
LPCTSTR filePath = argv[1];
DWORD numLines = _ttoi(argv[2]);
HANDLE fileHandle = CreateFile(filePath,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_FLAG_SEQUENTIAL_SCAN,NULL);
...
|
I have a service that needs to call a batch when a new file is copied to a directory. I tried using CreateProcess, ShellExecute, ShellExecuteEx and even system. I tried calling ... |
I have some automated test (using CUnit) which require a "disk-image"-file (raw copy of a disk) to be "mounted" in windows and explored. I have previously used a tool/library called ... |
Is there a way to convert a .c file that was created on a Mac to be compatible with VS2010? Or am I stuck having to re-type the code by hand?
Thanks!
... |
I currently have several hundred file path in lines in a txt file I need to strim e.g.
report2011510222820.html: <td width="60%" bgcolor="#f4f4f4" class="tablebody" valign="top">C:\Users\Administrator\Desktop\calc.exe</td>
How could I take out " report2011510222820.html: ... |
I have an addin program that works with MS Word (version 2007). It is located in the C:\Program Files location. I installed Windows 7 and then went to make ... |
I'm using Cygwin:
tail -f prueba.txt
The file is located in c:\cygwin\home\ (/home/).
How can I do exactly the same for a file that is located in:
c:/wamp/logs/
|
I want to combine a number of Win32 C-Projects to one .lib file.
OS: Windows XP Sp3
IDE/Comipler: Visual Studio 2010
Now I have one parent project that references all the other projects. But ... |
int main(int argc, char *argv[])
{
FILE *fp = fopen("a.txt", "wt");
fprintf(fp, "AAAA");
// No flush. and No close
raise(SIGTERM);
...
|
I am writing a program in C that prints a random hexadecimal value to a text file. The printed value has a carriage return (CR) along with a line feed (LF). ... |
As per title
createobject scripting.filesystemobject IIS 7 - vbscript code is always trying to save file in C:\Windows\System32\inetsrv\ instead of web site folder
and I get a "permission denied" error of course
The ... |
I'm following this basic example how to create a system driver:
http://sriramk.com/blog/2007/09/world-windows-driver-from-scratch.html
When I do the build I get the following (above the BUILD: lines):
0>XmlLog::File::CopyXslFile(): Unable to copy the XML style ...
|
Possible Duplicate:
Convert bitmap to PNG in-memory in C++ (win32)
I have a BMP file as a char* buffer. I want to convert this BMP file ... |
Using the windows host file located in
windows/system32/drivers/etc/host
Is it possible to respond a request from an application like when it is offline(not connected to the Internet)? Could you please ... |
You will need to use an SDK from Microsoft for this. That is, your slide show example requires a startup iof a PowerPoint process. There is an Office SDK for this. Be prepared to address a whole host of issues (not the least of which is learning Windows programming) if you try this. |
|
No real point in posting huge blocks of code anyway. As a programmer, you're expected to be able to distill problems to their essences. In large blocks of code, that means figuring out the problematic section. A segfault occurs commonly on bad memory access. Use a debugger to figure out precisely where the segfault occurs, and trace the memory access in ... |
|
i am a newbie to computer programming having gotten visual basic 6 and borland c++ builder 6 as gifts. is it possible to view the source code (not file information) of a folder (such as a basic windows xp folder) or .zip or .rar file directly (the source code itself of the file, not the info of what files are in ... |
|
|
|
|
Hey all, I need to create an app that will work similar to the Windows Search feature. Desired Results A user types in text, selects a directory, and the app searches all the files and returns the files that have the text. I was able to get that part, except now the search does not work on Office 2007 files. So ... |
|
I am lookinf for a place or some one to show me what all can go in a rc file. I mean the syntex and lexicon of the rc file. this is for windows os. I want to write my rc files by hand with dev-cpp ide. I have gone to google and tryed everything i could i just don't know ... |
How can i use C++ to access mp3 files and all their attributes in xp? Their are many different attributes for music files such as name, artist album etc - i would like to change these. I don't have visual studio, so will have to use win32 or standard c++ - will this be possible? cheers |
|
|
|
|
hi, I am developing an application in Windows CE platform is Windows Ce .net 4.2. i need to play media file through C code, i have managed to play media file in win32 through "system" command but this command is not available for Windows CE, i have tried CreateProcess function for Windows CE application but by this i am only able ... |
Simpler? Write your own codec implementing existing container and/or compression formats. :-) No, I don't. Of course it is dense. What did you expect? Please, do the following: find out formal description of just one of the video compression format and algorithm, read it thoroughly, realize how complex it is and imagine how much work would it take to implement it. ... |
|
from MSDN: NetShareAdd The NetShareAdd function shares a server resource. Security Requirements Only members of the Administrators or Account Operators local group or those with Communication, Print, or Server operator group membership can successfully execute NetShareAdd. The Print operator can add only Printer queues. The Communication operator can add only communication-device queues. NET_API_STATUS NetShareAdd( LPWSTR servername, DWORD ... |
|
"I want to" and "I'm very confused" about the same thing are incompatible, please check up you logical reasoning. My feeling you do not really want it very much; but you're being forces by something or somebody. Is this case, your chances to get any help are really low. Remember, anyone needs some motivation to help you. Who will be interested ... |
|
I am not sure what you mean by transparent. To prevent your data from being "sniffed" by other applications including simply opening the file isn't so easy. You can however protect your data from being able to be usable. How unusable is up to you, basically unusable, like opening a PDF in notepad, is fairly simple, save the binary ... |
"Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\my_proj\ce601211\9d5d0aae\App_WEB_header.asc x.asdf7d2.vcvdd1d.dll' could not be found" I'm getting this error sometimes when i'm trying to compile my web project. The weird part is that to solve it - I just keep hitting the F5 button until the error disapper and then the project is running fine. I found the problem on the web but now solution. ... |