15,740,360 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by gssajith87 (Top 53 by date)
gssajith87
15-Jan-14 6:18am
View
I am Sorry about the question! The Size Interpreted using MBR was the actual Size. But I am not sure why Volume Property shows it lesser by 4096 bytes. What data does it ignore ? Wish to know, what part of the volume is not accounted for showing in the volume property by disk management.
gssajith87
3-Jan-14 10:15am
View
I am calculating the size using Number of sectors * sector size. (Number of sector) is the value that i got from MBR Partition table. The Value of (Number of sectors * sector) is always > The Value i see in disk-management property of the same volume by 4096 bytes.
Example : This is the output of the Volume info from Parsing the MBR info:
StartingHead 32
StartingSector 33
StartingCylinder 0
AbsoluteStartingSector2048
EndHead 155
EndSector 28
EndCylinder 127
Flags 0
PartitionSize2048000
PartitionType7
gssajith87
22-Nov-13 4:43am
View
I am sure the file is part of the solution and the cpp file does not include any template.
gssajith87
22-Nov-13 3:44am
View
Sure.. Thanks.
gssajith87
22-Nov-13 2:40am
View
I think i found the exact reason for the problem i am facing. I am changing my system time for debugging my projects feature. I am compiling at time t1 when my machine time is say Nov20 and after making my changes i am compiling at time t2 when my machine time is Nov 18 or Dec 20 [The System Time i am changing manually for some debugging purpose.] So in this scenario, even for a small change in the Project, the entire solution gets compiled.
How i confirm this is, i just did a normal compilation i worked but when i delete my exe file and then compile again after changing the system time, the entire solution is getting compiled.
Thanks a lot for your time. Hope my finding is correct ! Any Comments on this.
gssajith87
21-Nov-13 1:48am
View
My New Setup is working fine.
The following is what I suspect, I did a clean of the solution before i builded last and after this event only i started having the problem of full compilation after every change. May be after i did a clean operation, the Solution is failing to point to the object files directory properly. How to ensure this ? How to ensure that , my solution refers to the correct directroy that contains the obj files...?
Does it make any sense ?
gssajith87
20-Nov-13 23:06pm
View
But i dont see, if the change i make sits on top of all compilation units. I have modified same file same line before and it have just compiled as desired., but yesterday i got this problem for every changes i make i am getting to compile the entire solution.
What i doubt is, if i had changed VS2010 Settings, that is forcing this full compilation. Is there a possible project propery setting that will cause this problem. ??
For now, i have created a new solution and have started working on it and not sure, if the same will happen to the new one as well.
gssajith87
13-Nov-13 14:17pm
View
@Stefan_Lang, that was not my case. In my case, the problem was, the file was not compiling properly when i compile the solution making changes multiple times. But unsure, why this happens !
gssajith87
7-Nov-13 6:09am
View
Thanks for your time guys., Recently i noticed the same issue occured again for me! that is, when i keep my mouse over the variable, i was not able to see the value of the variable while debugging. i compiled my solution mutiple times to get rid of this problem, but it did not help. I went on to delete the exe file and again compiled my solution., it just did a linkage and created the exe but the problem still existed. So i wanted to make sure that , the file in which the variable exist was properly compiled., so i removed a ";" to check if it throws any compilation error when compiling the solution. But on compiling the solution, i noticed that the compilation was successful and it did not find the error that i put in . So now i decided to compile the file alone in which the variable exist , this time the compiler found the error that is it compiled the file, now again i compiled the solution., this time when i debug i was able to see the variable value while debugging...
Conclusion : In my case, the problem was, the file was not compiling properly when i compile the solution making changes multiple times.
gssajith87
26-Sep-13 8:07am
View
Will post the code snippet in my next post! Had to move on with other activities, though i am facing similar errors now and then i will post it when i get it next time (shortly).
Reg the questions posted by @Stefan_Lang,
1) The Files are for sure compiled.
2) No Conditional Compilation.
3) I am quite sure , the variable is with in the scope., as the matter of evidence i am able to cout.
In the code example you have posted., if i do a cout of integer "i", i would have ended up with a compilation error.
Thanks for all your times., will get back shortly with the possible code snippet.
gssajith87
9-Sep-13 22:11pm
View
I tried out watch window, but it throws that's the variable is undefined
gssajith87
9-Sep-13 10:25am
View
Yes i have configured in DEBUG only. I am able to see all other values in other files., only one file is having this problem, i tried cleaning up the proj and rebuild, i tired deleting the obj file corresponding to the cpp file and compiled again. Still problem exist.
gssajith87
9-Sep-13 10:01am
View
Yes, it comes to every break point.
gssajith87
8-Aug-13 4:03am
View
Thanks, I directly changed it from void to ALIB* and it works, even passing void pointer as you have mentioned earlier is working.
gssajith87
7-Aug-13 9:22am
View
Hi Thanks for your reply,
I don't think this will work, even the problem i am having now is that,
I have a void pointer that is passed to the library and i need to cast the void pointer in the library.
As you have mentioned, even if i have the interface class in the library and the definition in the dll, will it be possible to call the function defined in the dll from library by casting the void pointer in the library ?
Note: The library is linked to the dll
gssajith87
6-Aug-13 8:21am
View
thanks, will do
gssajith87
6-Aug-13 7:44am
View
pwasser,
Thanks for your time., i got it solved., the problem was, the project was linking to libboost_regex-vc100-mt-gd-1_49.lib library, but actually, the my project was to link to libboost_regex-vc100-mt-sgd-1_49.lib library. I was pointing to a libary directory that has both these libaries., I am not sure why my application is automatically linking to the wrong libarary., Any Suggestions on this ?
gssajith87
6-Aug-13 1:29am
View
It looks like i have linked the library appropriately., Any thing else to check
gssajith87
31-Jul-13 2:33am
View
I could not find an function that returns this particular value in VSSAPI.dll., That is why i thought of checking if an win32 api is available. The windows volume property is displaying the information, so i thought there should be a win32 api or a registry that has this value stored.
gssajith87
5-Jul-13 7:24am
View
This is how i do allocate memory:
mystruct = (PVOLUME_BITMAP_BUFFER) VirtualAlloc(NULL,
dwBitmapBytes + 5120, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
This is how i fill the structure :
res = DeviceIoControl(hVolumeHandle, FSCTL_GET_VOLUME_BITMAP,
&iLCN, sizeof(iLCN), mystruct , dwinSize,
&dwOutSize, NULL);
gssajith87
5-Jul-13 7:19am
View
allocation of MyStruct.buffer is done by IOCTL CALL., FSCTL_GET_VOLUME_BITMAP
gssajith87
5-Jul-13 7:09am
View
My Structure is
typedef struct {
LARGE_INTEGER StartingLcn;
LARGE_INTEGER BitmapSize;
BYTE Buffer[1];
} VOLUME_BITMAP_BUFFER, *PVOLUME_BITMAP_BUFFER;
and FillMyStruct is an IOCTL call, that fills the structure.
gssajith87
4-Jul-13 9:32am
View
From where are you generating the excel Report ? Is it an application that generates Excel Report for you ? What are you doing exactly ? can you please eloborate !
gssajith87
29-Jun-13 23:00pm
View
@Richard macCutchan. I can see that the lib file is available in the location that i have given as input directories to the linker.
One more clarification., "libboost_log-vc100-mt-sgd-1_49.lib" is the one that cannot be find by the application., but i expect my application to look for "libboost_log-vc100-mt-gd-1_49.lib" [-gd instead of -sgd] , as i am compiling it as a MultiThreadedDll . Is my question valid., sorry if not.
gssajith87
29-Jun-13 10:21am
View
@Richard macCutchan, Thanks for your time. Do you mean that i have wrongly compiled the boost lib.
gssajith87
23-Mar-13 20:27pm
View
Thanks Brydon, So i take it as, it is by default, showing up some values in the memory (always a 16 byte padding at end of my pointer)that i need not worry about..
gssajith87
19-Mar-13 9:20am
View
Thanks for bringing in LCN and VCN ., will read regarding this and try to get my problem solved. Better suggestions on this are welcome. MFT is still very unclear.
gssajith87
19-Mar-13 9:18am
View
@Sergey Alexandrovich Kryukov yes., Sorry for that., it is Master File Table
gssajith87
7-Mar-13 8:56am
View
Thanks Desai.,
My question is why do i get an INVALID_PARAMETER = 87., Error when i call the writefile with correct parameters., and why does it not throw any error when i change the buffer size.,
-Sajith
gssajith87
6-Mar-13 2:09am
View
question improved., 87 is the last error i get.,
gssajith87
30-Jan-13 2:54am
View
Thanks for your time Vyacheslav
gssajith87
30-Jan-13 1:01am
View
Thanks Vyacheslav. Yes, i too saw the link., and searched for the function DecodePointer in my entire solution but not able to find one., Can you tell me which library or dll will be using DecodePointer call internally in common? (I am suing Md5, AES, BlowFish encryption and decryption algorithm. Have also used LZ4 and Zlib Algorithms included in my proj library.)
I have compiled the my solution in VS2010 with Linker->system->Minimum Required Version as 5.0.
Previously, i was getting an error saying, Invalid Win32 application which got solved by applying the above Configuration Change in VS2010.
Now, i am struck with this error "Procedure entry point for Decode pointer cannot be located in Kernel32.dll". Is there a way i can compile my solution, so that i can skip this error. ?
Thanks,
Sajith
gssajith87
7-Dec-12 12:35pm
View
Thanks Aswin, I tried the same , still had issues.
gssajith87
5-Dec-12 9:52am
View
And one more information, as u asked, the variable that i am calling is a local variable of the calling function
gssajith87
5-Dec-12 9:46am
View
Hi, the same call from another function works fine, when i call it from the second function, the ACCESS_VIOLATION comes in, in all the ways, both call is similar, but fails in the second. Not able to find the reason for crash, it was weird.
gssajith87
5-Dec-12 9:42am
View
@Stefan_Lang, It was not the NULL pointer i was passing to, have verified the same.
gssajith87
5-Dec-12 2:40am
View
Thanks All, i finally got it fixed, i changed setStringValue to take char * as argument.
char *buff;
void setStringValue(char *buffText)
{
buff = new char[strlen(buffText)+1];
memset(buff, 0, strlen(buffText) +1);
memcpy(buff, buffText, strlen(buffText));
}
Note to delete the buff in the destructor of the class.
gssajith87
4-Dec-12 21:42pm
View
class Func2
{
private:
string m_stringTest;
public:
Func2()
{
m_stringTest = "";
}
void setStringValue(string stringText)
{
m_stringTest = stringText;
}
}
gssajith87
4-Dec-12 17:06pm
View
Yes it is a std::string
No it is within a DLL,
extern c {
DECLDIR BOOL FUNC1( void *inputMgr, void* sdelegate)
{
Func2 *func = new Func2();
func->setStringVariable(stringvalue);
}
}
If i comment out this setStringVariable Function it is working. setStringVariable just assign the string to member variable of that class.
gssajith87
4-Dec-12 15:57pm
View
setStringVariable is in a class as public member, i am calling using the object of the class.
gssajith87
25-Oct-12 14:20pm
View
Hi Richard,
I Tried using the similar dll from my 64 bit compilation and got it worked ! When i tried to use the same in 32 bit dll, it fails, DLL opened using dependecy walker to show if it is 32 bit dll and it was!
gssajith87
25-Oct-12 13:57pm
View
The Path exist
gssajith87
25-Oct-12 13:56pm
View
Here is the code :
wchar_t wbuf[PATH_MAX];
flags = 0; // Unused
to_unicode("D:\\php\\ssleay32.dl", wbuf, ARRAY_SIZE(wbuf));
return LoadLibraryW(wbuf);
gssajith87
25-Oct-12 13:42pm
View
Thanks for the response.
Yes, I tried using LoadLibrary(). Now the problem is , when we specify the full path of the dll in the LoadLibrary Function, we get a error saying, Path Not Found. Any Suggestion on this.
gssajith87
25-Jul-12 9:19am
View
I didn't try this out because this had another limitation with my application. But of-course this is also an acceptable solution in general case.
gssajith87
25-Jul-12 9:16am
View
Hi Thanks all. [Jochecn Arndt] your following statement solved my issue " According to the Unicode setting, you must pass 'GetVolumePathNamesForVolumeNameA' or 'GetVolumePathNamesForVolumeNameW' to GetProcAddress()" Thanks.
gssajith87
28-Feb-12 1:56am
View
@ enhzflep that does not seem to help.
gssajith87
27-Feb-12 8:47am
View
Thanks... takeScreenShotPNGToArray worked for me..
gssajith87
25-Feb-12 2:06am
View
Thanks. So what should i do to take the entire screen and how will i save the screenshot to a file?
gssajith87
3-Nov-11 4:31am
View
I feel so, because i dont want my users to launch the application for using and it will restart the machine due to driver installation. I feel it will take the feel out of the user using the product.
Thanks,
gssajith87
3-Nov-11 4:25am
View
Thanks for your suggestion.
But, i feel not to have the check or installation procedure inside my application. I wish to know if there is any thing that is possible using inno script.
Thanks
gssajith87
3-Nov-11 0:55am
View
I feel it would be solvable, if there is an option or flag in inno script equivalent to POST INSTALL FLAG, by which the check box at the finish wizard is hidden and the installation happens just before the finish button is click. Ultimately, the driver installation should be the last step of installation, hidden from the user.
Thanks
gssajith87
3-Nov-11 0:51am
View
Thank u. But i am trying to have the installer as a single executable.
Show More