Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've finished a little application in c++ that parses a table of ~15k records into a .csv file.
The problem I'm having is that a third-party application that's supposed to use this file as source (Magmi) won't recognize the fields from my generated csv. However, if I simply open the same file with Open Office Calc and export it again as a .csv, it works perfectly fine with no other changes whatsoever.
I initially thought this might be a windows CR/LF issue, so I recompiled the application on linux and checked with notepad++ to make sure there's no surplus CR in there, and there isn't. All the line endings are LF.
Can someone please give me a hint as to what am I missing?
Thanks
It turns out it was a permissions issue that was causing the problem. Since my dev. environment is set on a VM, I was copying the output file into the import folder (never really though to see if the permissions were the cause). The ownership remained with the original user the file originated from, causing it to work when it was exported from Open Office, but failing when I tried to use the original one.
Thanks all.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 28 days ago.
Improve this question
I have to extract some information from SOFTWARE registry file. Like the existing in "/windows/system32/config" but totally independent of current OS
Official Microsoft doc suggests some predefined keys (HKLM, HKCU, etc.) but it looks like there is no opportunity to choose external OS-independent files. RegConnectRegistry() is not the way either because I just have a single SOFTWARE file. Any ideas? I know it is possible because Nirsoft package has such functionality.
If I understand you correctly, by "independent of current OS", I think you do not mean it needs to be platform-independent. You just want to open a registry contained in a file that was manually copied from some other machine's "C:\Windows\System32\config\SOFTWARE" file, and use it similarly to how in RegEdit, you could select the HKLM hive and then from the File menu select "Load Hiveā¦" and then select that file you have at hand. In other words, you want to connect not to the live registry on any particular machine, but just to a file.
In that case, I believe the Offline Registry Library is what you are looking for. Its OROpenHive function loads the specified file into memory for further use via its other functions.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
The .exe I'm building is currently recognized by Avast as "File might be dangerous". It is not a false positive because the antivirus software finally doesn't find any virus in it, but just an alarm saying that this file has been "rarely downloaded".
I've contacted Avast but they don't seem to offer a solution except sending them the .exe for whitelisting.
Things I have tried, but that didn't solve the problem:
Have proper resource.rc file in Visual C++, with details about the .exe: BLOCK "StringFileInfo", VALUE "CompanyName", "MyCompany\0", etc.
Use makecert, certutil, signtool as detailed in this answer: How do I create a self-signed certificate for code signing on Windows?
Things that won't work:
Add to local avast exclusion (I can't ask every customer to do this!)
Redo a "Submit file to Avast Lab for scan" for each new build of the .exe. It's not scalable to have to re-submit the .exe to Avast (and all other 50+ antivirus software!) for each new build.
Paying $200 per year for code-signing (it might work, but I don't find it fair to have to give a $xxx ransom per year just for being whitelisted)
Are there common solutions that can help to avoid "Rarely downloaded file / File might be suspicious" antivirus alarms?
Note: I've read How to prevent my .exe to be recognized as malware?, how can I make my software not to be discovered by antivirus?, but it did not really cover the topic here.
Note2: I've read these guidelines, etc. but it did not currently help.
It depends of what this exe going to do. I've seen these av balloons two times.
First when I've add some compiled assembler code into (signed?) exe file and another one happens when I'd deploy system wide hook to catch all keystrokes in the system while app is inactive (exe were not enough for it and there were own dll).
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have several spreadsheets that are being generated using <cfsaveContent>. All this while it worked fine, but now that we are moved to office365, those files .XLS cannot be opened anymore. Does someone know of a utility or API to which I can pass the generated file and convert it to a valid Excel format?
Thank you for the help in advance.
I don't know about a utility to convert existing files, but you'll want to start using either cfspreadsheet if you're using ACF or use Apache POI via Java.
We have experienced the same issue. It relates to a security patch in Excel. Make sure your HTML table containing the data in the CFSaveContent is valid html with thead, tbody, ect. That fixed it for us.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I made a compiled a sample program in C++ Using VS2013 and copied the "Release" into my desktop and changed it to a text file, I opened this text file and although most of the file was gibberish I could not understand, after scrolling down for a long time, I saw the location of my folders, why is this and is there any way to obfuscate it?
Edit:
I am, in fact, referring to the location of the pdb file. And setting the Linker Debugging options to "NO" seemed to do the trick, thanks everyone!
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
i am participating in google codejam 2012. I have red their Quick start guide . But i still unable to understand how to submit the answer. I have following question:
1> It's said that, we have to download the test cases (.in file) and run our program by using it. I just want to know if i have to make a method to extract input from .in file for that or enter it manually to verify the working?
2> When submit our answer, do we have to submit .txt file or .exe file(Am using c language)?
Thanks in advance
1.Put the .in files in your program folder.When testing, you don't have to enter it manually (but of course do this). I remember in C there's a method fscanf that can read from a file which might help you. But when you submit, you should still assume you are reading from the screen (entered manually), that is, change back to scanf.
2.You should submit your .c file.