I'm working on my first own project which is to collect some info from a save game file and then parse it to a website. Skyrim uses a .ess file extension, which to my knowledge is a binary file. I know how to open a file for reading but how to extract the info I need from there. Do all games use a standardized serialization or can the format of this file be anything?
If reading the binary file turns out to be too difficult, would it be possible to hook the game and retrieve info that way? If so, where would you recommend to start learning that stuff?
I am developing project on window application in c#.net. I want to consume the data from the web service and that web service is developed in PHP. So, How to give the reference of that web service?
When server send data then client receive that data, in C# windows services where data receive continuously (Using IP Address and port number) . This below code writing in console application . i want implement same logic in windows service side. but i want data receive continuously.
using System; using System.Collections.Generic; using System.Linq; using System.Text;
[Code]....
Above code write in console application, same logic implementing in windows service, but i want data receiving continuously
I am using an increasing number of applications which can be serviced from a web page. These apps do not need tomcat, apache or IIS to be installed but they are able to serve out web pages on demand.
Question is how is this done? Is it just a thead polling a port, waiting for a mime message and then chucking out the content or is it something more complex than that?
I am working on my final project for my class and after finally getting it to compile with no errors to finding examples/tutorials and following skeleton code I cam encountering a problem.
The program runs, asks all the correct questions but when it displays the base pay and total pay for all 3 employees it comes back as ( -1.0743 blah blah )
When they work over 40 hours it works correctly but when they work under 40 hours it displays those weird numbers in those sections.
// Kevin Johnson -- Overtime Pay -- Final Assignment // Created 11/14/2013 // Edited 11/17/2013 #include "stdafx.h"
Why is it not okay to return void? Most compilers will probably let you (gcc does) but it gives you a warning that you aren't supposed to. Most languages allow you to return void.
Something like
Code: void log(const std::string & txt){ std::cout << txt << std::endl; } //C++ way to do it void bar(int i){
I have this int type function that returns a number. It returns the value 2 for now but later it will return more variety of values. How do I use the value it returned? I'm not sure of the proper syntax.
Code: #include <math.h> #include <stdio.h> int main(void) { float a,b,c,root_1,root_2; printf("Please enter value a from the quadratic equation
[Code] ......
And I keep getting this error:
Code: /tmp/ccgtUIun.o: In function `main': assign345.c:(.text+0xc7): undefined reference to `sqrt' assign345.c:(.text+0xef): undefined reference to `sqrt' collect2: ld returned 1 exit status
I've had with visual studio but nothing seems to be working. No matter what I do even with simple programs, like Hello World, I'm always getting an error about a .pch header file.fatal error C1083: Cannot open precompiled header file: 'DebugConsoleApplication1.pch': No such file or directory
This is only for one of the programs I've made but I'm pretty new to programming and I've not even used the header files for anything so I have no clue how to resolve this problem.
I have some struct which contains: void *elems (basically a pointer to an array of contiguous memory).
I want to use bsearch to return a pointer, and then somehow figure out where in the array that value is. Having a pointer in this case isn't enough, I need to know what the index is. I've tried a number of things:
int index; void *value = bsearch(key, start_ptr, cv->count, cv->elemsz, cmp); index = &value - &start_ptr; return index; [ Replacing the second line with:
// in the first instance index = (char*) value - (char*) start_ptr;
// in other instances... index = ((char*) value - start_ptr))/cv->elemsz)
I have a Windows desktop application with 2 projects. The main project, and a simple windows service project. I have written the service and the service installer. I have added code to my main window to start the service, but I can't figure out how to install the service when the application runs for the first time, or is installed. Ideally I would like the service to be installed when the application is installed, I'm just not sure how to do that.
I have WCF web service which contains methods for communicating with database (ms sql). For a long time I was using pure sql statements, that aren't secure. It is time to move to parameterized queries. I'm using code-engine.com source code for query builder. Example of it is here: SelectQueryBuilder: Building complex and flexible SQL queries/commands from C# . Which works OK and I have no problems when is used inside of web service.
The problem: I also have asp.net web site which uses this webservice and the main problem is, how to build queries on client side and sent them to web service? I can build query on client side and send dbCommand.commandtext but I then I don't know how to send parameters list to webservice, because it isn't serialized.
This would be used as "universal" method for sql statements. I have others method like getUser(),getUsers(),getPages() but I really need this kind of methods to pass query to it.
I have an client application and server application, I want to make an update program, In my program I want client send a message to server if there is an new version or not, and server reply with a text message ,send will be done via web service .
I am trying to get my service to install into services but it will not. When I go to the command line and run the InstallUtil.exe service.exe it fails miserably. This is what I get on my console:
The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:publish codeImportImport. exe assembly's progress.
The file is located at C:publish codeImportImport.InstallLog.
I need to open up and modify a user's registry key from a 32-bit service (note that the user is not logged in at the time.) I do the following:
Code: //For simplicity error checks are not shown //I also made sure to enable the following privileges: // SE_RESTORE_NAME, SE_BACKUP_NAME
[Code]....
The problem is that the "SoftwareClassesLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" key isn't loaded, even though I know that it exists in the actual user profile. I can verify that by loading the user account and by using 64-bit regedit.
I call a function that returns a string, and I can print it out fine, but I want to test the result of the function to see if it returns 0. But I can't just call the function again (GetNextToken(b)) because it will generate a different token. I can't allocate space for the string because I'm not sure what the size of the returned string is going to be.
Basically I want to see if the GetNextToken(b) returns 0, and if it doesn't then print the string. And running GetNextToken(b) again will give a different result.
Code: int main(int argc, char **argv) { SomeStruct* b = CreateStruct(argv[1],argv[2]); printf("HERE %s", GetNextToken(b));
So, I'm in the midst of implementing my own malloc() and free() functions, but I'm having a hard time with the syntax of getting the address that malloc returns. Whenever I check the address, it's 0 Here's the code:
Code: char *word = malloc(10); int address = *word; printf("%d",address);
The reason I want the address is so that I could store it in a data structure for further usage when I'm dealing with different cases for the free() function. Or is there another way to do this?
What does the C++ standard say about returned temporal objetcts's lifetime ?For example, in this code:
#include <iostream>// Object cout, manipulator endl using std::cout; using std::endl; class C { private:
[code]....
Here, the temporal object C returned by function f() still lives when function h() is called and is destroyed inmediately after function h() returns to his caller (the function main()). So, it seems that a returned temporal object lives while it is used and it is destroyed when not used (in the next sentence of the sentence that call the function that returns the temporal object). Does the C++ standard specify that this must be the behaviour of C++ compilers?
I want know if the query returned zero rows or not.
Don't want to use count(*)
sql = "select * from TABLE where employeefirstname = @First order by EmploymentStatusDescription"; using (SqlCommand cmd = new SqlCommand(sql, conn)) { cmd.Parameters.AddWithValue("@First", First); reader = cmd.ExecuteReader(); } while (reader.Read())
I am just trying to make a simple two player game. First player enters the movie and second player guesses it by using some basics of C++.
movie[] = entered by player 1. movie_temp[]= a temp array with '_' in it. It updates after every guess by player 2.
MY PROBLEM: Please refer the main function where I called the function movie_check().
This updates the life after every guess. I want the same to happen for my movie_temp array.
When i run this program, only the lives are updated properly, on correct guess the lives are not reduced, but in next turn the array_temp is not updated and the same array is displayed again and again after each gas.
How to create a function which return array and save it in movie_temp (just as I did for life).
I need to get the current time, have the system sleep for a period of time, then return the difference in seconds.
#include <iostream> #include <string> #include <ctime> #include <time.h> #define _CRT_SECURE_NO_WARNINGS using namespace::std; // in the <ctime> library is a function time(0)
[Code] ....
I'm not receiving an errors but the return value is not correct. It's returning 1.4259 no matter how long it sleeps for.